]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Fix module-level leak
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 3 Jul 2013 17:50:28 +0000 (13:50 -0400)
committerRoland Dreier <roland@purestorage.com>
Thu, 11 Jul 2013 23:46:44 +0000 (16:46 -0700)
commit4aed1f74ade0413ff8effb2e9a816fe78645bd15
tree7bb6d1374a85233db10e4e30212710c4c814eefc
parent0a3992302302e66d142ff2fb4d7267f66497020a
IB/qib: Fix module-level leak

The vzalloc()'ed field physshadow is leaked on module unload.

This patch adds vfree after the sibling page shadow is freed.

Reported-by: Dean Luick <dean.luick@intel.com>
Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_init.c