[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0811241053190.4148@axis700.grange>
Date: Mon, 24 Nov 2008 10:57:33 +0100 (CET)
From: Guennadi Liakhovetski <lg@...x.de>
To: rpurdie@...ys.net
cc: linux-kernel@...r.kernel.org
Subject: leds/leds-pca955x.c: small and, probably, hatmless race window
Hi,
leds/leds-pca955x.c does on two occasions:
kfree(pca955x);
i2c_set_clientdata(client, NULL);
which means, between these two calls dev->driver_data points to a freed
location. One of these two occasions is in probe on the error path,
another in release, thus, both are, probably, harmless, still would be
better to fix?
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@...x.de
--
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