qlcnic: Fix memory leak.
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Wed, 23 Apr 2014 13:59:56 +0000 (09:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2014 17:31:14 +0000 (13:31 -0400)
commitab0648e8b6426a009a0e929b137037481b1c2e1e
treebde0399fbd770761fb1b2eb1b96ca75fb4a097f6
parent2c97e9e2633f3a4a3a301e5071fb0fe0d0d7543b
qlcnic: Fix memory leak.

o In case QLC_83XX_MBX_CMD_NO_WAIT command type the calling
  function does not free the memory as it does not wait for
  response. So free it when get a response from adapter after
  sending the command.

Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c