public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] zfcp: spin_lock_irqsave() is not nestable
@ 2016-10-13  8:53 Dan Carpenter
  2016-10-13 10:49 ` Steffen Maier
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Carpenter @ 2016-10-13  8:53 UTC (permalink / raw)
  To: Steffen Maier
  Cc: Martin Schwidefsky, Heiko Carstens, linux-s390, linux-kernel,
	kernel-janitors

We accidentally overwrite the original saved value of "flags" so that
we can't re-enable IRQs at the end of the function.  Presumably this
function is mostly called with IRQs disabled or it would be obvious in
testing.

Fixes: aceeffbb59bb ("zfcp: trace full payload of all SAN records (req,resp,iels)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c
index 637cf89..5810019 100644
--- a/drivers/s390/scsi/zfcp_dbf.c
+++ b/drivers/s390/scsi/zfcp_dbf.c
@@ -384,7 +384,7 @@ void zfcp_dbf_san(char *tag, struct zfcp_dbf *dbf,
 	/* if (len > rec_len):
 	 * dump data up to cap_len ignoring small duplicate in rec->payload
 	 */
-	spin_lock_irqsave(&dbf->pay_lock, flags);
+	spin_lock(&dbf->pay_lock);
 	memset(payload, 0, sizeof(*payload));
 	memcpy(payload->area, paytag, ZFCP_DBF_TAG_LEN);
 	payload->fsf_req_id = req_id;

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-25  7:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-13  8:53 [patch] zfcp: spin_lock_irqsave() is not nestable Dan Carpenter
2016-10-13 10:49 ` Steffen Maier
2016-10-13 11:27   ` Dan Carpenter
2016-10-14 20:21   ` Martin K. Petersen
2016-10-24  8:18     ` Christian Borntraeger
2016-10-25  7:28       ` Christian Borntraeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox