]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Do not free sqbuf when event is I40IW_TIMER_TYPE_CLOSE
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 21 Nov 2017 22:18:31 +0000 (16:18 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 1 Dec 2017 19:21:25 +0000 (12:21 -0700)
commit7fa8420eea9f4aeb531f33dcc0de6e449fdd5911
tree2a83b1290f2158378268de5a3cbc37043306dde6
parent0dfd9b7c3de9af6a5f6378855c3a8527a1b68a00
i40iw: Do not free sqbuf when event is I40IW_TIMER_TYPE_CLOSE

When the event type is I40IW_TIMER_TYPE_CLOSE, there is no sqbuf and
it should not be freed as one in i40iw_schedule_cm_timer().

Fixes: 11419b4d0754 ("i40iw: add connection management code")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c