]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
NTB: MFV b77b2637: Link toggle memory leak
authorConrad Meyer <cem@FreeBSD.org>
Sun, 11 Oct 2015 20:59:02 +0000 (20:59 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Sun, 11 Oct 2015 20:59:02 +0000 (20:59 +0000)
commit0125f2c1af014eb6432c0d5637db965baaffaeb1
tree44ac996c801df28bbb07869a74b51041d66b34c9
parent92bbfa507cdd85ccd02726f918f3fa335d105c01
NTB: MFV b77b2637: 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.

Authored by: Jon Mason
Obtained from: Linux
Sponsored by: EMC / Isilon Storage Division
sys/dev/ntb/if_ntb/if_ntb.c