Re: [PATCH] net: sun: sungem: rix a possible null dereference

2017-03-15 Thread Philippe Reynes
Hi Sergei, On 3/15/17, Sergei Shtylyov wrote: > Hello! > > On 3/15/2017 12:23 AM, Philippe Reynes wrote: > >> The function gem_begin_auto_negotiation dereference >> the pointer ep before testing if it's null. This >> patch add a check on ep before dereferencing it. >> >> This issue was added by t

Re: [PATCH] net: sun: sungem: rix a possible null dereference

2017-03-15 Thread Sergei Shtylyov
Hello! On 3/15/2017 12:23 AM, Philippe Reynes wrote: The function gem_begin_auto_negotiation dereference the pointer ep before testing if it's null. This patch add a check on ep before dereferencing it. This issue was added by the patch 92552fdd557: "net: sun: sungem: use new api ethtool_{get|

[PATCH] net: sun: sungem: rix a possible null dereference

2017-03-14 Thread Philippe Reynes
The function gem_begin_auto_negotiation dereference the pointer ep before testing if it's null. This patch add a check on ep before dereferencing it. This issue was added by the patch 92552fdd557: "net: sun: sungem: use new api ethtool_{get|set}_link_ksettings". Reported-by: Dan Carpenter Signed