]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Check the correct variable in error handling code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Aug 2019 12:32:36 +0000 (15:32 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 7 Aug 2019 20:46:41 +0000 (16:46 -0400)
commit4e2c1833673978ec98f463256109ee1df4651d8d
tree76d3a06903d1c97260318e8aed72ad231898adc9
parentf2feaa51f9ba87c29912f88a95976e041b928ab0
IB/mlx5: Check the correct variable in error handling code

The code accidentally checks "event_sub" instead of "event_sub->eventfd".

Fixes: 8881ca8c828f ("IB/mlx5: Enable subscription for device events over DEVX")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20190807123236.GA11452@mwanda
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/devx.c