]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wd719x: add missing .module to wd719x_template
authorOndrej Zary <linux@rainbow-software.org>
Mon, 9 Feb 2015 12:38:21 +0000 (13:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 13:11:07 +0000 (14:11 +0100)
commit189a021fffea59620d912989d14e1eff15710e3a
tree9584f4159c193ae987e5cc48dfeee3fd3f77307e
parentf2ad09ddf093623f966a62102d1590b42d2b6fa1
wd719x: add missing .module to wd719x_template

commit 2ecf8e0ae28cb22d434e628c351c6193fd75fafa upstream.

wd719x_template is missing the .module field, causing module refcount
not to work, allowing to rmmod the driver while in use (mounted filesystem),
causing an oops.

Set .module to THIS_MODULE to fix the problem.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/wd719x.c