modpost: add NOFAIL to strndup
authorDenis Efremov <efremov@linux.com>
Tue, 27 Aug 2019 12:20:23 +0000 (15:20 +0300)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 4 Sep 2019 13:55:42 +0000 (22:55 +0900)
commit6f02bdfc995f098bde87216c122ade2b46f971b5
treee80a876ff957c1ecd1e0d73b127fa350be326117
parent389c9af7f1a1e564c18ab744528b7f64759b7875
modpost: add NOFAIL to strndup

Add NOFAIL check for the strndup call, because the function
allocates memory and can return NULL. All calls to strdup in
modpost are checked with NOFAIL.

Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/mod/modpost.c