kernel/lib/test_kmod.c
.. .. @@ -204,7 +204,7 @@ 204 204 case TEST_KMOD_DRIVER: 205 205 break; 206 206 case TEST_KMOD_FS_TYPE: 207 - if (info && info->fs_sync && info->fs_sync->owner)207 + if (info->fs_sync && info->fs_sync->owner)208 208 module_put(info->fs_sync->owner); 209 209 break; 210 210 default: .. .. @@ -1155,6 +1155,7 @@ 1155 1155 if (ret) { 1156 1156 pr_err("could not register misc device: %d\n", ret); 1157 1157 free_test_dev_kmod(test_dev); 1158 + test_dev = NULL;1158 1159 goto out; 1159 1160 } 1160 1161