diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2019-07-29 16:35:01 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-07-29 18:56:26 +0300 |
| commit | 18917d51472fe3b126a3a8f756c6b18085eb8130 (patch) | |
| tree | 52853491eb793cde61446a97c50f36bc9a6c939b /tools/perf/scripts/python/stackcollapse.py | |
| parent | d24b6c624b3b5735ab25e7d6b55ee83da1d9a496 (diff) | |
| download | linux-18917d51472fe3b126a3a8f756c6b18085eb8130.tar.xz | |
NFC: fix attrs checks in netlink interface
nfc_genl_deactivate_target() relies on the NFC_ATTR_TARGET_INDEX
attribute being present, but doesn't check whether it is actually
provided by the user. Same goes for nfc_genl_fw_download() and
NFC_ATTR_FIRMWARE_NAME.
This patch adds appropriate checks.
Found with syzkaller.
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
