The patch titled Subject: lib/test_kmod.c: remove a NULL test has been added to the -mm tree. Its filename is lib-test_kmod-remove-a-null-test.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/lib-test_kmod-remove-a-null-test.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/lib-test_kmod-remove-a-null-test.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Subject: lib/test_kmod.c: remove a NULL test The "info" pointer has already been dereferenced so checking here is too late. Fortunately, we never pass NULL pointers to the test_kmod_put_module() function so the test can simply be removed. Link: http://lkml.kernel.org/r/20200228092452.vwkhthsn77nrxdy6@kili.mountain Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Luis Chamberlain <mcgrof@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/test_kmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/test_kmod.c~lib-test_kmod-remove-a-null-test +++ a/lib/test_kmod.c @@ -204,7 +204,7 @@ static void test_kmod_put_module(struct case TEST_KMOD_DRIVER: break; case TEST_KMOD_FS_TYPE: - if (info && info->fs_sync && info->fs_sync->owner) + if (info->fs_sync && info->fs_sync->owner) module_put(info->fs_sync->owner); break; default: _ Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are lib-test_kmod-remove-a-null-test.patch loop-use-worker-per-cgroup-instead-of-kworker-fix.patch