Don't potentially dereference NULL in net/dcb/dcbnl.c:dcbnl_getapp()
authorJesper Juhl <jj@chaosbits.net>
Thu, 10 Feb 2011 11:57:16 +0000 (11:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Feb 2011 19:21:14 +0000 (11:21 -0800)
commitd3337de52af7fb0ebe605b02b740be4ee7dee9eb
tree1788ad68e863e2aa8c6cbf50ceab25d39827bc5b
parent7ec79270d7de0c8ca602c47cb25a9652ec28f37f
Don't potentially dereference NULL in net/dcb/dcbnl.c:dcbnl_getapp()

nla_nest_start() may return NULL. If it does then we'll blow up in
nla_nest_end() when we dereference the pointer.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dcb/dcbnl.c