]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] megaraid_sas: Move poll_aen_lock initializer
authorKashyap Desai <Kashyap.Desai@lsi.com>
Wed, 18 Jul 2012 01:20:44 +0000 (18:20 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 22 Aug 2012 05:39:25 +0000 (09:39 +0400)
commit1b3db080d415f55e9a1c6bbb29788f1ed2a01855
tree72de4e32718559ec28f8ad31b26f4d4b4676a950
parent631cab0c573059dda30e66f79586fb59aa7a69c9
[SCSI] megaraid_sas: Move poll_aen_lock initializer

The following patch moves the poll_aen_lock initializer from
megasas_probe_one() to megasas_init().  This prevents a crash when a user
loads the driver and tries to issue a poll() system call on the ioctl
interface with no adapters present.

Signed-off-by: Kashyap Desai <Kashyap.Desai@lsi.com>
Signed-off-by: Adam Radford <aradford@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/megaraid/megaraid_sas_base.c