[lkml]   [2015]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH linux-next 0/4] fix possile NULL pointer dereference in ndo_get_iflink callback functions

The four callback functions deferference the pointers without test.
As ipoib_get_iflink failed, it is a good reason to fix the other three
functions. Those functions will return zero on error, as valid ifindex
greater than zero.

I understand that those simple patches should be emerged into a single
patch. However, those files have be maintained by different maintainers.
So, I split it for review. It also will be convenient to remove one or
more patches with the rest not be affected.

Honggang Li (4):
infiniband/ipoib: fix possible NULL pointer dereference in
ipvlan: fix possible NULL pointer dereference in ipvlan_get_iflink
macvlan: fix possible NULL pointer dereference in macvlan_dev_get_iflink
net/dsa: fix possible NULL pointer dereference in dsa_slave_get_iflink

drivers/infiniband/ulp/ipoib/ipoib_main.c | 5 ++++-
drivers/net/ipvlan/ipvlan_main.c | 5 ++++-
drivers/net/macvlan.c | 4 +++-
net/dsa/slave.c | 5 ++++-
4 files changed, 15 insertions(+), 4 deletions(-)


 \ /
  Last update: 2015-04-14 18:01    [W:0.126 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site