Skip to content

Commit fd3132d

Browse files
Steven Rostedtrostedt
Steven Rostedt
authored andcommittedAug 19, 2009
kconfig: add check if end exists in extract-ikconfig
Both start and end should be tested for existence before continuing to parse the config.gz file. Signed-off-by: Steven Rostedt <[email protected]>
1 parent 744ffcb commit fd3132d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎scripts/extract-ikconfig

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ dump_config() {
1717
return
1818
fi
1919
end=`$binoffset $file $IKCFG_ED 2>/dev/null`
20+
[ "$?" != "0" ] && end="-1"
21+
if [ "$end" -eq "-1" ]; then
22+
return
23+
fi
2024

2125
start=`expr $start + 8`
2226
size=`expr $end - $start`

0 commit comments

Comments
 (0)