[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100105200301.833920712@mini.kroah.org>
Date: Tue, 05 Jan 2010 12:02:18 -0800
From: Greg KH <gregkh@...e.de>
To: linux-kernel@...r.kernel.org, stable@...nel.org,
akpm@...ux-foundation.org, torvalds@...ux-foundation.org,
stable-review@...nel.org
Cc: Roel Kluin <roel.kluin@...il.com>,
Hans de Goede <hdegoede@...hat.com>,
Jean Delvare <khali@...ux-fr.org>
Subject: [22/39] hwmon: (fschmd) Fix check on unsigned in watchdog_write()
2.6.31-stable review patch. If anyone has any objections, please let us know.
------------------
From: Roel Kluin <roel.kluin@...il.com>
commit c7702c31340f84cfd5e5df22293578b7ae1e9370 upstream.
If unsigned the watchdog_trigger() return value will not be
checked correctly.
Signed-off-by: Roel Kluin <roel.kluin@...il.com>
Acked-by: Andrew Morton <akpm@...ux-foundation.org>
Cc: Hans de Goede <hdegoede@...hat.com>
Signed-off-by: Jean Delvare <khali@...ux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
---
drivers/hwmon/fschmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/hwmon/fschmd.c
+++ b/drivers/hwmon/fschmd.c
@@ -819,7 +819,7 @@ static int watchdog_release(struct inode
static ssize_t watchdog_write(struct file *filp, const char __user *buf,
size_t count, loff_t *offset)
{
- size_t ret;
+ int ret;
struct fschmd_data *data = filp->private_data;
if (count) {
--
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