]> git.baikalelectronics.ru Git - kernel.git/commit
ncr5380: Dont re-enter NCR5380_select()
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 22 Feb 2016 23:07:06 +0000 (10:07 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Mar 2016 14:38:14 +0000 (09:38 -0500)
commit6fabe1b9474d6e254f4d51abf88604bd3285fb1c
treeb2ce847507a10dfc62cbdac8fb76809c6e62ac82
parent3dba1cd127b70ff6bfa12756bc52255c53c9ed7e
ncr5380: Dont re-enter NCR5380_select()

Calling NCR5380_select() from the abort handler causes various problems.
Firstly, it means potentially re-entering NCR5380_select(). Secondly, it
means that the lock is released, which permits the EH handlers to be
re-entered. The combination results in crashes. Don't do it.

Fixes: 1893961d066b ("ncr5380: Implement new eh_abort_handler")
Reported-and-tested-by: Michael Schmitz <schmitzmic@gmail.com>
Cc: <stable@vger.kernel.org> # 4.5
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c
drivers/scsi/atari_NCR5380.c