]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libsas: Check SMP PHY control function result
authorJohn Garry <john.garry@huawei.com>
Fri, 4 Jan 2019 16:01:27 +0000 (00:01 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 12 Jan 2019 03:14:24 +0000 (22:14 -0500)
commitc6dae6417487e8b775b84eeca4cfce19f14f9a2d
tree6bc529e39e17871df7d87719d88dff65ae4eefcb
parent58be1b01cc05fc29c5374402061c5381b254bde3
scsi: libsas: Check SMP PHY control function result

Currently the SMP PHY control execution result is checked, however the
function result for the command is not.

As such, we may be missing all potential errors, like SMP FUNCTION FAILED,
INVALID REQUEST FRAME LENGTH, etc., meaning the PHY control request has
failed.

In some scenarios we need to ensure the function result is accepted, so add
a check for this.

Tested-by: Jian Luo <luojian5@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_expander.c