hwmon/f71805f: Fix a race condition
authorJean Delvare <khali@linux-fr.org>
Wed, 14 Feb 2007 20:15:05 +0000 (21:15 +0100)
committerJean Delvare <khali@arrakis.delvare>
Wed, 14 Feb 2007 20:15:05 +0000 (21:15 +0100)
commita117dddf6bb27478e6903c9cb242601b6f45b11c
treef05e5be6348e59a3b0416bd3609024b5884f298c
parentbc8f0a26855d8fac68040d462ec3cc13884e98e5
hwmon/f71805f: Fix a race condition

I think I introduced a potential race condition bug with commit
51c997d80e1f625aea3426a8a9087f5830ac6db3. I didn't realize it
back then, but platform_device_put and platform_device_release
both appear to free the platform data associated with the device.
This makes an explicit kfree redundant at best, and maybe even
racy, as it might occur while someone still holds a reference
to the platform device.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/f71805f.c