The patch titled
rocket.c: fix unchecked mutex_lock_interruptible()
has been added to the -mm tree. Its filename is
rocketc-fix-unchecked-mutex_lock_interruptible.patch
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
------------------------------------------------------
Subject: rocket.c: fix unchecked mutex_lock_interruptible()
From: "Satyam Sharma" <[EMAIL PROTECTED]>
Check the return of mutex_lock_interruptible() in drivers/char/rocket.c and
return ERESTARTSYS if we were interrupted.
Signed-off-by: Satyam Sharma <[EMAIL PROTECTED]>
Cc: Jiri Slaby <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
drivers/char/rocket.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -puN drivers/char/rocket.c~rocketc-fix-unchecked-mutex_lock_interruptible
drivers/char/rocket.c
--- a/drivers/char/rocket.c~rocketc-fix-unchecked-mutex_lock_interruptible
+++ a/drivers/char/rocket.c
@@ -1702,7 +1702,8 @@ static int rp_write(struct tty_struct *t
if (count <= 0 || rocket_paranoia_check(info, "rp_write"))
return 0;
- mutex_lock_interruptible(&info->write_mtx);
+ if (mutex_lock_interruptible(&info->write_mtx))
+ return -ERESTARTSYS;
#ifdef ROCKET_DEBUG_WRITE
printk(KERN_INFO "rp_write %d chars...", count);
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
git-ubi.patch
rocketc-fix-unchecked-mutex_lock_interruptible.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html