Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 63cca824 authored by Kashyap Desai's avatar Kashyap Desai Committed by Greg Kroah-Hartman
Browse files

SCSI: megaraid_sas: Move poll_aen_lock initializer


commit bd8d6dd4 upstream.

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: default avatarKashyap Desai <Kashyap.Desai@lsi.com>
Signed-off-by: default avatarAdam Radford <aradford@gmail.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1db3396a
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment