Re: [PATCH 2/2 net-next] net_failover: fix error code in net_failover_create()

2018-05-31 Thread Samudrala, Sridhar
On 5/31/2018 5:04 AM, Dan Carpenter wrote: We forgot to set the error code on this path. This function is supposed to return error pointers, so with this bug it accidentally returns NULL and the caller doesn't check for that. Fixes: cfc80d9a1163 ("net: Introduce net_failover driver")

[PATCH 2/2 net-next] net_failover: fix error code in net_failover_create()

2018-05-31 Thread Dan Carpenter
We forgot to set the error code on this path. This function is supposed to return error pointers, so with this bug it accidentally returns NULL and the caller doesn't check for that. Fixes: cfc80d9a1163 ("net: Introduce net_failover driver") Signed-off-by: Dan Carpenter diff --git