Re: [patch net] net: devlink: skip info_get op call if it is not defined in dumpit

2019-03-26 Thread David Miller
From: Jiri Pirko Date: Sun, 24 Mar 2019 00:21:03 +0100 > From: Jiri Pirko > > In dumpit, unlike doit, the check for info_get op being defined > is missing. Add it and avoid null pointer dereference in case driver > does not define this op. > > Fixes: f9cf22882c60 ("devlink: add device informat

Re: [patch net] net: devlink: skip info_get op call if it is not defined in dumpit

2019-03-23 Thread Jakub Kicinski
On Sun, 24 Mar 2019 00:21:03 +0100, Jiri Pirko wrote: > From: Jiri Pirko > > In dumpit, unlike doit, the check for info_get op being defined > is missing. Add it and avoid null pointer dereference in case driver > does not define this op. > > Fixes: f9cf22882c60 ("devlink: add device information

[patch net] net: devlink: skip info_get op call if it is not defined in dumpit

2019-03-23 Thread Jiri Pirko
From: Jiri Pirko In dumpit, unlike doit, the check for info_get op being defined is missing. Add it and avoid null pointer dereference in case driver does not define this op. Fixes: f9cf22882c60 ("devlink: add device information API") Reported-by: Ido Schimmel Signed-off-by: Jiri Pirko --- ne