]> 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)
commitac1de4da35959afe4d40b946ae0f35fe42084905
treee80a876ff957c1ecd1e0d73b127fa350be326117
parenta594f15eee44d29faaa99d61c767119b57360ba8
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