diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-11-18 07:07:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-18 22:02:03 +0100 |
commit | cf970c002d270c36202bd5b9c2804d3097a52da0 (patch) | |
tree | 5a8f07507f36caef9274c29504f428fef07f9760 /drivers/net/virtio_net.c | |
parent | Merge branch 'bnx2x' (diff) | |
download | linux-cf970c002d270c36202bd5b9c2804d3097a52da0.tar.xz linux-cf970c002d270c36202bd5b9c2804d3097a52da0.zip |
ping: prevent NULL pointer dereference on write to msg_name
A plain read() on a socket does set msg->msg_name to NULL. So check for
NULL pointer first.
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
0 files changed, 0 insertions, 0 deletions