fix of mutex locking bug in fops_read
Subsystems (2)
PATCH 1/1 fix of mutex locking bug in fops_read
This patch fixes a mutex locking bug causing userspace processes to hang indefinitely upon reading the radio device for RDS data.
--- drivers/media/radio/si470x/radio-si470x-common.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
(quoted diff) +0 -0
b/drivers/media/radio/si470x/radio-si470x-common.c index 4c69698..41ee757 100644
drivers/media/radio/si470x/radio-si470x-common.c +0 -0
@@ -483,7 +483,6 @@ static ssize_t si470x_fops_read(struct file *file,
char __user *buf,
count /= 3;
/* copy RDS block out of internal buffer and to user buffer */
- mutex_lock(&radio->lock);
while (block_count < count) {
if (radio->rd_index == radio->wr_index)
break;
Signature · 1 line
1.7.2.3
Quoted 32 lines · Tobias Lorenz
This patch fixes a mutex locking bug causing userspace processes to hang indefinitely upon reading the radio device for RDS data.
Signed-off-by Nils Faerber <[email protected]>Acked-by Tobias Lorenz <[email protected]>---
drivers/media/radio/si470x/radio-si470x-common.c | 1 -1 files changed, 0 insertions(+), 1 deletions(-)drivers/media/radio/si470x/radio-si470x-common.c +0
-1@@ -483,7 +483,6 @@ static ssize_t si470x_fops_read(struct file *file,char __user *buf, count /= 3; /* copy RDS block out of internal buffer and to user buffer */ - mutex_lock(&radio->lock); while (block_count < count) { if (radio->rd_index == radio->wr_index)break;
--
1.7.2.3--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html