]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commitdd006fc434e107ef90f7de0db9907cbc1c521645
tree446fcb0957343e58317af0748cd79f9b7bcf7fb4
parent4993e5b37e8bcb55ac90f76eb6d2432647273747
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