[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140103.203924.418673249346450315.davem@davemloft.net>
Date: Fri, 03 Jan 2014 20:39:24 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: liuhangbin@...il.com
Cc: netdev@...r.kernel.org, wpan@...hat.com
Subject: Re: [PATCH v2] infiniband: make sure the src net is infiniband
when create new link
From: Hangbin Liu <liuhangbin@...il.com>
Date: Fri, 3 Jan 2014 11:33:45 +0800
> When we create a new infiniband link with uninfiniband device, e.g. `ip link
> add link em1 type ipoib pkey 0x8001`. We will get a NULL pointer dereference
> cause other dev like Ethernet don't have struct ib_device.
>
> The code path is:
> rtnl_newlink
> |-- ipoib_new_child_link
> |-- __ipoib_vlan_add
> |-- ipoib_set_dev_features
> |-- ib_query_device
>
> Fix this bug by make sure the src net is infiniband when create new link.
>
> Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists