]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Call i40e_client_get_params only after the instance is checked
authorJack Vogel <jack.vogel@oracle.com>
Fri, 13 Jan 2017 21:01:26 +0000 (13:01 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 20 Jan 2017 05:53:13 +0000 (21:53 -0800)
commitddedbbc79288885adb4c5f1e410472ee1017cde4
treece04639324d53ee12e1fc4240ba25aab6c2bf386
parentbf624d7a82d44ba24e44a22a07ba5c4f74589279
Call i40e_client_get_params only after the instance is checked

We can avoid the minor bit of work by calling check params after we
check for the client instance, since we're about to return early in
cases where we do not have a client. But, more importantly, this
change prevents a panic from a NULL pointer when attempting to
get the client params.

Orabug: 25159384

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_client.c