[PATCH linux-next v2] infiniband/ipoib: fix possible NULL pointer dereference in ipoib_get_iflink

From: Honggang Li
Date: Tue Apr 14 2015 - 12:27:24 EST


1) Droped ipvlan/macvlan/dsa patches.
2) Do not check the pointer returned by netdev_priv.
3) Add the FIX tag.

--------------------- console log ---------------
ipoib_get_iflink dev = ffff88026eb1c000, priv = ffff88026eb1c7c0, priv->parent = (null)
ipoib_get_iflink dev = ffff88026eb1c000, priv = ffff88026eb1c7c0, priv->parent = (null)
ipoib_get_iflink dev = ffff880225c8a000, priv = ffff880225c8a7c0, priv->parent = (null)
ipoib_get_iflink dev = ffff880225c8a000, priv = ffff880225c8a7c0, priv->parent = (null)
[ OK ]
ipoib_get_iflink dev = ffff88026eb1c000, priv = ffff88026eb1c7c0, priv->parent = (null)
ipoib_get_iflink dev = ffff88026eb1c000, priv = ffff88026eb1c7c0, priv->parent = (null)
ipoib_get_iflink dev = ffff880225c8a000, priv = ffff880225c8a7c0, priv->parent = (null)
ipoib_get_iflink dev = ffff880225c8a000, priv = ffff880225c8a7c0, priv->parent = (null)
Shutting down interface cxgb4_1: ipoib_get_iflink dev = ffff88026eb1c000, priv = ffff88026eb1c7c0, priv->parent = (null)
ipoib_get_iflink dev = ffff88026eb1c000, priv = ffff88026eb1c7c0, priv->parent = (null)
ipoib_get_iflink dev = ffff880225c8a000, priv = ffff880225c8a7c0, priv->parent = (null)
ipoib_get_iflink dev = ffff880225c8a000, priv = ffff880225c8a7c0, priv->parent = (null)
--------------------- console log ---------------

Honggang Li (1):
infiniband/ipoib: fix possible NULL pointer dereference in
ipoib_get_iflink

drivers/infiniband/ulp/ipoib/ipoib_main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

--
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/