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]
Date:	Mon, 10 Sep 2012 22:53:29 +0200
From:	Luis Gonzalez Fernandez <luisgf@...il.com>
To:	lrg@...com, broonie@...nsource.wolfsonmicro.com
Cc:	linux-kernel@...r.kernel.org,
	Luis Gonzalez Fernandez <luisgf@...il.com>
Subject: [PATCH 1/1] regulator: Fix incorrect casting in tps6230-regulator.c

linux-3.6/drivers/regulator/tps62360-regulator.c: In function ‘tps62360_probe’:
linux-3.6/drivers/regulator/tps62360-regulator.c:364:13: warning: cast from poi$

Fix incorrect cast in tps62360_probe() function.

Signed-off-by: Luis Gonzalez Fernandez <luisgf@...il.com>
---
 drivers/regulator/tps62360-regulator.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c
index 68729a7..02ff11c 100644
--- a/drivers/regulator/tps62360-regulator.c
+++ b/drivers/regulator/tps62360-regulator.c
@@ -361,7 +361,7 @@ static int __devinit tps62360_probe(struct i2c_client *client,
 			dev_err(&client->dev, "Error: No device match found\n");
 			return -ENODEV;
 		}
-		chip_id = (int)match->data;
+		chip_id = *((int *)match->data);
 		if (!pdata)
 			pdata = of_get_tps62360_platform_data(&client->dev);
 	}
-- 
1.7.9.5

--
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