Skip to content
Commit fa8705b0 authored by Tony Battersby's avatar Tony Battersby Committed by David S. Miller
Browse files

[NET]: sanitize kernel_accept() error path



If kernel_accept() returns an error, it may pass back a pointer to
freed memory (which the caller should ignore).  Make it pass back NULL
instead for better safety.

Signed-off-by: default avatarTony Battersby <tonyb@cybernetics.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 414c66e0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment