Re: [PATCH 1/1] net: dcb: set error code on failures
From: David Miller
Date: Sat Dec 03 2016 - 23:55:12 EST
From: Pan Bian <bianpan201602@xxxxxxx>
Date: Sat, 3 Dec 2016 21:49:08 +0800
> From: Pan Bian <bianpan2016@xxxxxxx>
>
> In function dcbnl_cee_fill(), returns the value of variable err on
> errors. However, on some error paths (e.g. nla put fails), its value may
> be 0. It may be better to explicitly set a negative errno to variable
> err before returning.
>
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188881
>
> Signed-off-by: Pan Bian <bianpan2016@xxxxxxx>
Applied, thanks.