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  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]
Date:   Sun,  2 Apr 2017 20:47:47 +0530
From:   Santosh Kumar Singh <kumar.san1093@...il.com>
To:     Cliff Whickman <cpw@....com>, Robin Holt <robinmholt@...il.com>
Cc:     linux-kernel@...r.kernel.org,
        Santosh Kumar Singh <kumar.san1093@...il.com>
Subject: [PATCH] misc: sgi-xp: Use setup_timer Kernel API instead of

Replace init_timer function with setup_timer reported by coccinelle

Signed-off-by: Santosh Kumar Singh <kumar.san1093@...il.com>
---
 drivers/misc/sgi-xp/xpc_main.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
index 7f32712..9545157 100644
--- a/drivers/misc/sgi-xp/xpc_main.c
+++ b/drivers/misc/sgi-xp/xpc_main.c
@@ -931,11 +931,8 @@ struct device xpc_chan_dbg_subname = {
 		part->act_state = XPC_P_AS_INACTIVE;
 		XPC_SET_REASON(part, 0, 0);
 
-		init_timer(&part->disengage_timer);
-		part->disengage_timer.function =
-		    xpc_timeout_partition_disengage;
-		part->disengage_timer.data = (unsigned long)part;
-
+		setup_timer(&part->disengage_timer,
+				xpc_timeout_partition_disengage,
+					(unsigned long)part);
 		part->setup_state = XPC_P_SS_UNSET;
 		init_waitqueue_head(&part->teardown_wq);
 		atomic_set(&part->references, 0);
-- 
1.9.1

Powered by blists - more mailing lists