lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1392624815-20759-1-git-send-email-21cnbao@gmail.com>
Date:	Mon, 17 Feb 2014 16:13:34 +0800
From:	Barry Song <21cnbao@...il.com>
To:	akpm@...ux-foundation.org, ohad@...ery.com
Cc:	linux-kernel@...r.kernel.org, workgroup.linux@....com,
	Wei Chen <Wei.Chen@....com>, Barry Song <Baohua.Song@....com>
Subject: [PATCH] drivers/rpmsg/virtio_rpmsg_bus.c: fix the return value of rpmsg_init

From: Wei Chen <Wei.Chen@....com>

rpmsg_init() always return ERROR code or random integer now, this patch fixes
it.

Signed-off-by: Wei Chen <Wei.Chen@....com>
Signed-off-by: Barry Song <Baohua.Song@....com>
---
 drivers/rpmsg/virtio_rpmsg_bus.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c
index b6135d4..7812585 100644
--- a/drivers/rpmsg/virtio_rpmsg_bus.c
+++ b/drivers/rpmsg/virtio_rpmsg_bus.c
@@ -1096,9 +1096,10 @@ static int __init rpmsg_init(void)
 	if (ret) {
 		pr_err("failed to register virtio driver: %d\n", ret);
 		bus_unregister(&rpmsg_bus);
+		return ret;
 	}
 
-	return ret;
+	return 0;
 }
 subsys_initcall(rpmsg_init);
 
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ