Re: [PATCH] staging: lustre: do not ignore try_module_get() fail in obd_class_open()

2015-01-17 Thread Greg Kroah-Hartman
On Sat, Dec 27, 2014 at 02:26:53AM +0300, Alexey Khoroshilov wrote: > obd_class_open() ignores error code of try_module_get(), > while it can lead to race with module unload. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov > --- > drivers

[PATCH] staging: lustre: do not ignore try_module_get() fail in obd_class_open()

2014-12-26 Thread Alexey Khoroshilov
obd_class_open() ignores error code of try_module_get(), while it can lead to race with module unload. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 3 +-- 1 file changed, 1 inse