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)
commite7e6c6320c8c9ed923250cd019e5f9ca0f59b4b8
tree76d3a06903d1c97260318e8aed72ad231898adc9
parentd97de8887a12c598abc4d2e4e57a54c1f030e112
IB/mlx5: Check the correct variable in error handling code

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

Fixes: 759738537142 ("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