Re: [PATCH net] nfc: fix memory leak in llcp_sock_bind()

2019-10-04 Thread David Miller
From: Eric Dumazet Date: Fri, 4 Oct 2019 11:08:34 -0700 > sysbot reported a memory leak after a bind() has failed. > > While we are at it, abort the operation if kmemdup() has failed. > > BUG: memory leak ... > Fixes: 30cc4587659e ("NFC: Move LLCP code to the NFC top level diirectory") > Sign

[PATCH net] nfc: fix memory leak in llcp_sock_bind()

2019-10-04 Thread Eric Dumazet
sysbot reported a memory leak after a bind() has failed. While we are at it, abort the operation if kmemdup() has failed. BUG: memory leak unreferenced object 0x888105d83ec0 (size 32): comm "syz-executor067", pid 7207, jiffies 4294956228 (age 19.430s) hex dump (first 32 bytes): 00 69