Skip to content

Commit

Permalink
kconfig: add check if end exists in extract-ikconfig
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and rostedt committed Aug 19, 2009
1 parent 744ffcb commit fd3132d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/extract-ikconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit fd3132d

Please sign in to comment.