]> git.baikalelectronics.ru Git - kernel.git/commit
NTB: Link toggle memory leak
authorJon Mason <jon.mason@intel.com>
Fri, 1 Feb 2013 22:25:37 +0000 (15:25 -0700)
committerJon Mason <jon.mason@intel.com>
Wed, 15 May 2013 17:57:45 +0000 (10:57 -0700)
commit590368912c603e5e255ebc35ed97543170022415
treeaa19d879e5a13dbda6817c439fd9154e5f934366
parentdc133956c881589805b35368712d2554f7c7e026
NTB: Link toggle memory leak

Each link-up will allocate a new NTB receive buffer when the NTB
properties are negotiated with the remote system.  These allocations did
not check for existing buffers and thus did not free them.  Now, the
driver will check for an existing buffer and free it if not of the
correct size, before trying to alloc a new one.

Signed-off-by: Jon Mason <jon.mason@intel.com>
drivers/ntb/ntb_transport.c