projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
744ffcb
)
kconfig: add check if end exists in extract-ikconfig
author
Steven Rostedt
<srostedt@redhat.com>
Thu, 30 Apr 2009 16:19:56 +0000
(12:19 -0400)
committer
Steven Rostedt
<rostedt@goodmis.org>
Wed, 19 Aug 2009 01:59:26 +0000
(21:59 -0400)
Both start and end should be tested for existence before continuing
to parse the config.gz file.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/extract-ikconfig
patch
|
blob
|
blame
|
history
diff --git
a/scripts/extract-ikconfig
b/scripts/extract-ikconfig
index 72997c353cb363961139a8adf3dfa4ad1ae22d5a..42d6bcefb400bc3d96c8897eb85f9cc9fd892521 100755
(executable)
--- a/
scripts/extract-ikconfig
+++ b/
scripts/extract-ikconfig
@@
-17,6
+17,10
@@
dump_config() {
return
fi
end=`$binoffset $file $IKCFG_ED 2>/dev/null`
+ [ "$?" != "0" ] && end="-1"
+ if [ "$end" -eq "-1" ]; then
+ return
+ fi
start=`expr $start + 8`
size=`expr $end - $start`