OSDN Git Service

nfc: fix potential illegal memory access
authorYang Wei <albin_yang@163.com>
Mon, 8 Jul 2019 14:57:39 +0000 (22:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2019 07:34:54 +0000 (09:34 +0200)
commit7c8f2c52a72105b03618542a715e41112afab22c
tree8339c136c5f834ccee5af9774cd576a4090b7bf0
parent2289103cd17a6f1d9bdecfdb6e2445e042b94fe7
nfc: fix potential illegal memory access

[ Upstream commit dd006fc434e107ef90f7de0db9907cbc1c521645 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/nfc/nci/data.c