mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 04:34:11 +08:00
scsi: mpt3sas: clear release bit when buffer reregistered
Clear MPT3_DIAG_BUFFER_IS_RELEASED bit once diag buffer is re-registered after reading the buffer, else driver won't release the buffer and return the 'diag release' command with -EINVAL status saying that buffer is already released. Link: https://lore.kernel.org/r/1568379890-18347-7-git-send-email-sreekanth.reddy@broadcom.com Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
08e7378ee3
commit
dd180e4eed
@ -2367,6 +2367,8 @@ _ctl_diag_read_buffer(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
if (ioc_status == MPI2_IOCSTATUS_SUCCESS) {
|
||||
ioc->diag_buffer_status[buffer_type] |=
|
||||
MPT3_DIAG_BUFFER_IS_REGISTERED;
|
||||
ioc->diag_buffer_status[buffer_type] &=
|
||||
~MPT3_DIAG_BUFFER_IS_RELEASED;
|
||||
dctlprintk(ioc, ioc_info(ioc, "%s: success\n", __func__));
|
||||
} else {
|
||||
ioc_info(ioc, "%s: ioc_status(0x%04x) log_info(0x%08x)\n",
|
||||
|
Loading…
Reference in New Issue
Block a user