]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78c26a76b3232f822925223805b7cc0246111200
treee80a876ff957c1ecd1e0d73b127fa350be326117
parent1c153ce5cd9948dbf32250c75e63f5fd3ae713a0
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