Bernd Schubert
22cfb0bf67
IPoIB: Fix possible NULL dereference in ipoib_start_xmit()
Fix a bug introduced in 69cce1d14049 ("net: Abstract dst->neighbour
accesses behind helpers.") where we might dereference skb_dst(skb)
even if it is NULL, which causes:
[ 240.944030] BUG: unable to handle kernel NULL pointer dereference at 0000000000000040
[ 240.948007] IP: [<ffffffffa0366ce9>] ipoib_start_xmit+0x39/0x280 [ib_ipoib]
[...]
[ 240.948007] Call Trace:
[ 240.948007] <IRQ>
[ 240.948007] [<ffffffff812cd5e0>] dev_hard_start_xmit+0x2a0/0x590
[ 240.948007] [<ffffffff8131f680>] ? arp_create+0x70/0x200
[ 240.948007] [<ffffffff812e8e1f>] sch_direct_xmit+0xef/0x1c0
Addresses: https://bugzilla.kernel.org/show_bug.cgi?id=41212
Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2011-08-16 10:19:20 -07:00
..
2011-08-05 22:16:42 -04:00
2011-08-02 21:17:02 -10:00
2011-08-05 21:45:20 +02:00
2011-08-06 18:33:19 -07:00
2011-07-28 18:26:32 -07:00
2011-08-03 19:06:37 -04:00
2011-07-28 01:30:07 -07:00
2011-08-04 16:43:43 -10:00
2011-08-04 06:32:51 -10:00
2011-08-02 21:18:39 -10:00
2011-08-01 06:13:48 -10:00
2011-08-05 10:56:29 +01:00
2011-07-30 08:57:57 -10:00
2011-08-04 01:30:34 -07:00
2011-08-16 10:19:20 -07:00
2011-08-03 22:00:09 -10:00
2011-07-28 05:58:19 -07:00
2011-08-02 12:32:08 +01:00
2011-07-30 00:08:53 -07:00
2011-07-30 08:36:02 -10:00
2011-07-31 23:28:27 +02:00
2011-08-05 06:42:01 -10:00
2011-08-04 11:26:24 +01:00
2011-08-02 21:17:02 -10:00
2011-07-31 06:23:08 -10:00
2011-08-05 15:21:52 -04:00
2011-07-31 06:24:50 -10:00
2011-08-01 14:05:46 -10:00
2011-08-03 14:25:20 -10:00
2011-08-03 16:44:21 +02:00
2011-07-30 08:36:02 -10:00
2011-08-01 06:10:16 -10:00
2011-08-02 14:54:11 +01:00
2011-07-30 00:08:53 -07:00
2011-08-03 15:12:09 -10:00
2011-08-02 14:51:57 -04:00
2011-08-07 15:51:45 -07:00
2011-07-30 00:08:53 -07:00
2011-08-06 12:02:40 -07:00
2011-08-02 08:23:07 +00:00
2011-08-03 14:34:57 -04:00