]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: fix potential illegal memory access
authorYang Wei <albin_yang@163.com>
Mon, 8 Jul 2019 14:57:39 +0000 (22:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jul 2019 19:46:24 +0000 (12:46 -0700)
commit1a8bc382f793741d21cb3246976e0ac5302eaf9f
tree446fcb0957343e58317af0748cd79f9b7bcf7fb4
parent6e4730b0ee5e8717e89a9134cdfddb08751a7103
nfc: fix potential illegal memory access

The frags_q is not properly initialized, it may result in illegal memory
access when conn_info is NULL.
The "goto free_exit" should be replaced by "goto exit".

Signed-off-by: Yang Wei <albin_yang@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/nfc/nci/data.c