diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index ae9d9e17da37d8cc3afd29ec71533a00a8696b2c..d5a5a6413b6db16c411d8cdbdecd105fcfab4f7d 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -6892,6 +6892,7 @@ static void fail_all_outstanding_cmds(struct ctlr_info *h) if (refcount > 1) { c->err_info->CommandStatus = CMD_CTLR_LOCKUP; finish_cmd(c); + atomic_dec(&h->commands_outstanding); failcount++; } cmd_free(h, c);