]> git.baikalelectronics.ru Git - kernel.git/commit
SCTP: Check to make sure file is valid before setting timeout
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 3 Jul 2007 16:47:40 +0000 (12:47 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 6 Jul 2007 00:40:11 +0000 (17:40 -0700)
commit026c099d283f4f69239f55f0f75d2fc097dba4b9
tree4cbb7f7df0c50c35554a0cbfd58413894bae72c8
parent787680427b2b8e5e8797fc047e543ef329989582
SCTP: Check to make sure file is valid before setting timeout

In-kernel sockets created with sock_create_kern don't usually
have a file and file descriptor allocated to them.  As a result,
when SCTP tries to check the non-blocking flag, we Oops when
dereferencing a NULL file pointer.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c