Re: [PATCH net-next] net/mlxfw: fix a NULL dereference

2017-06-14 Thread David Miller
From: Dan Carpenter Date: Wed, 14 Jun 2017 13:41:52 +0300 > If we hit this error path we end up returning ERR_PTR(0) which is NULL. > The caller is not expecting that so it results in a NULL dereference. > > Fixes: 410ed13cae39 ("Add the mlxfw module for Mellanox

Re: [PATCH net-next] net/mlxfw: fix a NULL dereference

2017-06-14 Thread Yotam Gigi
On 06/14/2017 01:41 PM, Dan Carpenter wrote: > If we hit this error path we end up returning ERR_PTR(0) which is NULL. > The caller is not expecting that so it results in a NULL dereference. > > Fixes: 410ed13cae39 ("Add the mlxfw module for Mellanox firmware flash > process") > Signed-off-by:

[PATCH net-next] net/mlxfw: fix a NULL dereference

2017-06-14 Thread Dan Carpenter
If we hit this error path we end up returning ERR_PTR(0) which is NULL. The caller is not expecting that so it results in a NULL dereference. Fixes: 410ed13cae39 ("Add the mlxfw module for Mellanox firmware flash process") Signed-off-by: Dan Carpenter diff --git