nfc: netlink: Add check on NFC_ATTR_VENDOR_DATA
authorChristophe Ricard <christophe.ricard@gmail.com>
Fri, 14 Aug 2015 20:33:40 +0000 (22:33 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 16 Aug 2015 23:36:17 +0000 (01:36 +0200)
commitfe202fe95564023223ce1910c9e352f391abb1d5
tree5ce126dcf515afe51b073be33cc450e360c25410
parent94b85938ad21944afeff71d1cca68b094905e1b9
nfc: netlink: Add check on NFC_ATTR_VENDOR_DATA

NFC_ATTR_VENDOR_DATA is an optional vendor_cmd argument.
The current code was potentially using a non existing argument
leading to potential catastrophic results.

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/netlink.c