netlink: revert broken, broken "2-clause nla_ok()"
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 13 Dec 2016 19:30:15 +0000 (22:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Dec 2016 19:54:44 +0000 (14:54 -0500)
commit3e1ed981b7a903ba81199d4d25b80c6bba705160
tree1ea2510d8302182ef99c1fd48ca3bdcdd90c2c2d
parenta220871be66f99d8957c693cf22ec67ecbd9c23a
netlink: revert broken, broken "2-clause nla_ok()"

Commit 4f7df337fe79bba1e4c2d525525d63b5ba186bbd
"netlink: 2-clause nla_ok()" is BROKEN.

First clause tests if "->nla_len" could even be accessed at all,
it can not possibly be omitted.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h