diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-11-18 07:07:45 +0100 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-03-11 15:57:03 +0100 |
commit | 0ea36994dec559df6f63dcae75b9b360b53560b6 (patch) | |
tree | ed844e6571e4be5969758243edd1059e16a3eb46 /net/rose/rose_in.c | |
parent | 2ac38dd9eb30e8a466e6b615326f2a180753d80f (diff) | |
download | kernel_samsung_espresso10-0ea36994dec559df6f63dcae75b9b360b53560b6.zip kernel_samsung_espresso10-0ea36994dec559df6f63dcae75b9b360b53560b6.tar.gz kernel_samsung_espresso10-0ea36994dec559df6f63dcae75b9b360b53560b6.tar.bz2 |
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.
[Backport of net-next cf970c002d270c36202bd5b9c2804d3097a52da0]
Bug: 12780426
Change-Id: I29d9cb95ef05ec76d37517e01317f4a29e60931c
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Diffstat (limited to 'net/rose/rose_in.c')
0 files changed, 0 insertions, 0 deletions