summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorManoj Kumar <kumarmn@us.ibm.com>2015-10-21 20:10:31 (GMT)
committerJames Bottomley <JBottomley@Odin.com>2015-10-30 07:57:21 (GMT)
commitfa4aa632da19fba0154b66a50329acd738304291 (patch)
tree08afcf489f87f429ab281c2f3d902743af89bf39 /drivers/soc
parentb704f70ce2003c8046d5c0128303aeeb0d93d890 (diff)
downloadlinux-fa4aa632da19fba0154b66a50329acd738304291.tar.xz
cxlflash: Fix to avoid invalid port_sel value
If two concurrent MANAGE_LUN ioctls are issued with the same WWID parameter, it would result in an incorrect value of port_sel. This is because port_sel is modified without any locks being held. If the first caller stalls after the return from find_and_create_lun(), the value of port_sel will be set incorrectly to indicate a single port, though in this case it should have been set to both ports. To fix, use the global mutex to serialize the lookup of the WWID and the subsequent modification of port_sel. Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com> Reviewed-by: Brian King <brking@linux.vnet.ibm.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/soc')
0 files changed, 0 insertions, 0 deletions