]> www.infradead.org Git - users/dwmw2/linux.git/commit
NTB: Link toggle memory leak
authorJon Mason <jon.mason@intel.com>
Fri, 1 Feb 2013 22:25:37 +0000 (15:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2013 18:36:04 +0000 (11:36 -0700)
commite71ac54f810d7b4fac5c148052c78d523e57751f
treef17477513a885729cae835e1f753fdd2d9da80d9
parent086ae86effb4ba7d744f85f14cb9c63061fa38ce
NTB: Link toggle memory leak

commit b77b2637b39ecc380bb08992380d7d48452b0872 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ntb/ntb_transport.c