scripts: modpost: check memory allocation results
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 15 Aug 2018 19:30:38 +0000 (12:30 -0700)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 22 Aug 2018 14:21:40 +0000 (23:21 +0900)
commit1f3aa9002dc6a0d59a4b599b4fc8f01cf43ef014
tree0c2549d32c719097ea6e9e37c05c272bbf0690f3
parentf498926c47aa7d4f1b6d08af2ba16f3cf8fcb151
scripts: modpost: check memory allocation results

Fix missing error check for memory allocation functions in
scripts/mod/modpost.c.

Fixes kernel bugzilla #200319:
https://bugzilla.kernel.org/show_bug.cgi?id=200319

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Yuexing Wang <wangyxlandq@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/mod/modpost.c