Commit fd3132d5815bf72aeec7d5ad87161b4831f8e48c

Authored by Steven Rostedt
Committed by Steven Rostedt
1 parent 744ffcbe86

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 <rostedt@goodmis.org>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

scripts/extract-ikconfig
... ... @@ -17,6 +17,10 @@
17 17 return
18 18 fi
19 19 end=`$binoffset $file $IKCFG_ED 2>/dev/null`
  20 + [ "$?" != "0" ] && end="-1"
  21 + if [ "$end" -eq "-1" ]; then
  22 + return
  23 + fi
20 24  
21 25 start=`expr $start + 8`
22 26 size=`expr $end - $start`