APPLIED: [PATCH][XENIAL][SRU] rfkill: fix missing return on rfkill_init
Stefan Bader
stefan.bader at canonical.com
Thu Apr 19 16:57:29 UTC 2018
On 17.04.2018 19:50, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> BugLink: http://bugs.launchpad.net/bugs/1764810
>
> An previous backport to bug LP: #1745130 overlooked adding in
> an error return that was introduced by commit 6124c53edeea. Fix
> this by adding in the missing return.
>
> Detected by CoverityScan, CID#1467925 ("Missing return statement)
>
> Fixes: b9a5fffbaee6 ("rfkill: Add rfkill-any LED trigger")
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
Applied to xenial/master-next
-Stefan
> net/rfkill/core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/rfkill/core.c b/net/rfkill/core.c
> index 9e43ad9..cbaba4e 100644
> --- a/net/rfkill/core.c
> +++ b/net/rfkill/core.c
> @@ -1358,6 +1358,7 @@ static int __init rfkill_init(void)
>
> error_led_trigger:
> misc_deregister(&rfkill_miscdev);
> + return error;
> }
> subsys_initcall(rfkill_init);
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20180419/52541956/attachment.sig>
More information about the kernel-team
mailing list