]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: don't sanity check non-existing TLV (NL compat)
authorRichard Alpe <richard.alpe@ericsson.com>
Mon, 17 Aug 2015 12:15:10 +0000 (14:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 17:39:54 +0000 (10:39 -0700)
commit7ef7c78ffe1bf0a9d12d3e359e16f0184782b59e
tree8b772622f82142d1e4950d9985a8180580d0cdeb
parent4b72937774710e6c58a525516b0e2eafe696b580
tipc: don't sanity check non-existing TLV (NL compat)

A zero length payload means that no TLV (Type Length Value) data has
been passed. Prior to this patch a non-existing TLV could be sanity
checked with TLV_OK() resulting in random behavior where a user
sending an empty message occasionally got a incorrect "operation not
supported" message back.

Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink_compat.c