Re: [PATCH] net: Fix a potential incorrect error handling in rawsock_connect

2020-06-12 Thread Andrew Lunn
On Fri, Jun 12, 2020 at 03:37:43PM -0500, Aditya Pakki wrote: > In rawsock_connect, the device is allocated by calling nfc_get_device. > In case of incorrect bounds index, the device should be freed by > calling nfc_put_device. The patch fixes this issue. Hi Aditya Putting nfc in the Subject:

[PATCH] net: Fix a potential incorrect error handling in rawsock_connect

2020-06-12 Thread Aditya Pakki
In rawsock_connect, the device is allocated by calling nfc_get_device. In case of incorrect bounds index, the device should be freed by calling nfc_put_device. The patch fixes this issue. Signed-off-by: Aditya Pakki --- net/nfc/rawsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)