summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYoung Xiao <92siuyang@gmail.com>2019-06-14 09:13:02 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-14 17:48:08 +0200
commit385097a3675749cbc9e97c085c0e5dfe4269ca51 (patch)
tree415306dcaa37476b85400ab59c1413c818450238 /include
parentMerge branch 'net-mvpp2-prs-Fixes-for-VID-filtering' (diff)
downloadlinux-385097a3675749cbc9e97c085c0e5dfe4269ca51.tar.xz
linux-385097a3675749cbc9e97c085c0e5dfe4269ca51.zip
nfc: Ensure presence of required attributes in the deactivate_target handler
Check that the NFC_ATTR_TARGET_INDEX attributes (in addition to NFC_ATTR_DEVICE_INDEX) are provided by the netlink client prior to accessing them. This prevents potential unhandled NULL pointer dereference exceptions which can be triggered by malicious user-mode programs, if they omit one or both of these attributes. Signed-off-by: Young Xiao <92siuyang@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions