On 10:46 Mon 16 Apr , Roland Dreier wrote:
> > - down_interruptible(&info->write_sem);
> > + if(mutex_lock_interruptible(&info->write_lock)){
> > + return -ERESTARTSYS;
> > + }
>
> 1) This is a semantic change. Of course using down_interruptible()
> without checking the return
> -down_interruptible(&info->write_sem);
> +if(mutex_lock_interruptible(&info->write_lock)){
> +return -ERESTARTSYS;
> +}
1) This is a semantic change. Of course using down_interruptible()
without checking the return value is almost certainly a bug, but have
you though
Use mutex instead of binary semaphore for mutual exclusion.
Signed-off-by: Milind Arun Choudhary <[EMAIL PROTECTED]>
---
rocket.c | 22 --
rocket_int.h |2 +-
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/drivers/char/rocket.c b/drivers/char/rock
3 matches
Mail list logo