diff options
| -rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 00f9fc992090..304000c3d433 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c | |||
| @@ -2510,8 +2510,10 @@ static struct scatterlist *mtip_hw_get_scatterlist(struct driver_data *dd, | |||
| 2510 | up(&dd->port->cmd_slot); | 2510 | up(&dd->port->cmd_slot); |
| 2511 | return NULL; | 2511 | return NULL; |
| 2512 | } | 2512 | } |
| 2513 | if (unlikely(*tag < 0)) | 2513 | if (unlikely(*tag < 0)) { |
| 2514 | up(&dd->port->cmd_slot); | ||
| 2514 | return NULL; | 2515 | return NULL; |
| 2516 | } | ||
| 2515 | 2517 | ||
| 2516 | return dd->port->commands[*tag].sg; | 2518 | return dd->port->commands[*tag].sg; |
| 2517 | } | 2519 | } |
