Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ecf8e0a authored by Ondrej Zary's avatar Ondrej Zary Committed by James Bottomley
Browse files

wd719x: add missing .module to wd719x_template



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: default avatarOndrej Zary <linux@rainbow-software.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 397ea9cb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -870,6 +870,7 @@ static int wd719x_board_found(struct Scsi_Host *sh)
}

static struct scsi_host_template wd719x_template = {
	.module				= THIS_MODULE,
	.name				= "Western Digital 719x",
	.queuecommand			= wd719x_queuecommand,
	.eh_abort_handler		= wd719x_abort,