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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:07:56 +0000 (11:07 +0100)
commit03f23424aa2b2809275db1b535862b9d8ddc7056
tree341f139095472e968ac9e0c8615cfbc9c509bead
parentf10f5b89c13635c32ebf6435c7849aef46e2ef4e
i40iw: Do not free sqbuf when event is I40IW_TIMER_TYPE_CLOSE

[ Upstream commit 10499986dbd8778e1acf9f9d2e166800dfee44b4 ]

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: f27b4746f378 ("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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/i40iw/i40iw_cm.c