Patch "cxl: Unlock on error in probe" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
cxl: Unlock on error in probe
to the 4.9-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:
cxl-unlock-on-error-in-probe.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Apr 9 17:09:24 CEST 2018
From: Dan Carpenter <[email protected]>
Date: Fri, 5 May 2017 08:34:58 +0300
Subject: cxl: Unlock on error in probe
From: Dan Carpenter <[email protected]>
[ Upstream commit 58d876fa7181f2f393190c1d32c056b5a9d34aa2 ]
We should unlock if get_cxl_adapter() fails.
--- drivers/misc/cxl/flash.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/misc/cxl/flash.c +6 -2
@@ -401,8 +401,10 @@ static int device_open(struct inode *inoif (down_interruptible (&sem) !=0 )return -EPERM ; -if (!(adapter =get_cxl_adapter (adapter_num))) -return -ENODEV ; +if (!(adapter =get_cxl_adapter (adapter_num))) { + rc = -ENODEV ; + goto err_unlock; + } file->private_data = adapter; continue_token =0 ;
@@ -446,6 +448,8 @@ err1:free_page ((unsigned long ) le); err:put_device (&adapter->dev); +err_unlock: +up (&sem);return rc; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/block-fix-an-error-code-in-add_partition.patch queue-4.9/x.509-fix-error-code-in-x509_cert_parse.patch queue-4.9/rdma-iw_cxgb4-avoid-touch-after-free-error-in-arp-failure-handlers.patch queue-4.9/drm-amdkfd-null-dereference-involving-create_process.patch queue-4.9/pnfs-flexfiles-missing-error-code-in-ff_layout_alloc_lseg.patch queue-4.9/drivers-misc-vmw_vmci-vmci_queue_pair.c-fix-a-couple-integer-overflow-tests.patch queue-4.9/cxl-unlock-on-error-in-probe.patch queue-4.9/md-cluster-fix-potential-lock-issue-in-add_new_disk.patch queue-4.9/ipmi_ssif-unlock-on-allocation-failure.patch queue-4.9/powercap-fix-an-error-code-in-powercap_register_zone.patch queue-4.9/perf-core-fix-error-handling-in-perf_event_alloc.patch queue-4.9/libceph-null-deref-on-crush_decode-error-path.patch