[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190326.112609.1066125705268766271.davem@davemloft.net>
Date: Tue, 26 Mar 2019 11:26:09 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jiri@...nulli.us
Cc: netdev@...r.kernel.org, mlxsw@...lanox.com, idosch@...lanox.com,
jakub.kicinski@...ronome.com
Subject: Re: [patch net] net: devlink: skip info_get op call if it is not
defined in dumpit
From: Jiri Pirko <jiri@...nulli.us>
Date: Sun, 24 Mar 2019 00:21:03 +0100
> From: Jiri Pirko <jiri@...lanox.com>
>
> 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 <idosch@...lanox.com>
> Signed-off-by: Jiri Pirko <jiri@...lanox.com>
Applied.
Powered by blists - more mailing lists