]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: Fix oops with raw sockets
authorRoland Dreier <rolandd@cisco.com>
Wed, 29 Mar 2006 17:36:46 +0000 (09:36 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 29 Mar 2006 17:36:46 +0000 (09:36 -0800)
commit8067bdde82389eacb3bb546d34d210020a7b015d
tree29b849109170341a546fbe0bdb52a43741b0341c
parent0c007dfd5465b9a877b794ed78be55a5a3dcc68c
IPoIB: Fix oops with raw sockets

ipoib_hard_header() needs to handle the case that daddr is NULL.  This
can happen when packets are injected via a raw socket, and IPoIB
shouldn't oops in this case.

Reported by Anton Blanchard <anton@samba.org>

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c