lpfc: fix races for miscdevice open vs. rmmod
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 15 Apr 2013 02:39:37 +0000 (22:39 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Apr 2013 19:41:44 +0000 (15:41 -0400)
commit858feacd2b6790c49ba9c7521f0c7ac3a5a9cb8e
tree000b992036f82dded16fa81efe54b33aad99b59f
parent3dce1891f3e4c334046b32c355b9e5cef50c18d9
lpfc: fix races for miscdevice open vs. rmmod

mind you, I'm not sure WTF would anybody _need_ that miscdevice
at all - no IO is possible for it, opening it only pins the module
down and is seriously racy, at that.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/scsi/lpfc/lpfc_init.c