From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:57430 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbdKFJmj (ORCPT ); Mon, 6 Nov 2017 04:42:39 -0500 Subject: Patch "s390/dasd: check for device error pointer within state change interrupts" has been added to the 3.18-stable tree To: sth@linux.vnet.ibm.com, alexander.levin@verizon.com, gregkh@linuxfoundation.org, schwidefsky@de.ibm.com Cc: , From: Date: Mon, 06 Nov 2017 10:42:39 +0100 Message-ID: <15099613591386@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled s390/dasd: check for device error pointer within state change interrupts to the 3.18-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: s390-dasd-check-for-device-error-pointer-within-state-change-interrupts.patch and it can be found in the queue-3.18 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From foo@baz Mon Nov 6 10:42:09 CET 2017 From: Stefan Haberland Date: Sat, 7 Oct 2017 22:38:01 +0000 Subject: s390/dasd: check for device error pointer within state change interrupts From: Stefan Haberland [ Upstream commit 2202134e48a3b50320aeb9e3dd1186833e9d7e66 ] Check if the device pointer is valid. Just a sanity check since we already are in the int handler of the device. Signed-off-by: Stefan Haberland Signed-off-by: Martin Schwidefsky Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/s390/block/dasd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c @@ -1672,8 +1672,11 @@ void dasd_int_handler(struct ccw_device /* check for for attention message */ if (scsw_dstat(&irb->scsw) & DEV_STAT_ATTENTION) { device = dasd_device_from_cdev_locked(cdev); - device->discipline->check_attention(device, irb->esw.esw1.lpum); - dasd_put_device(device); + if (!IS_ERR(device)) { + device->discipline->check_attention(device, + irb->esw.esw1.lpum); + dasd_put_device(device); + } } if (!cqr) Patches currently in stable-queue which might be from sth@linux.vnet.ibm.com are queue-3.18/s390-dasd-check-for-device-error-pointer-within-state-change-interrupts.patch