V4L/DVB (4849): Add missing spin_unlock to saa6588 decoder driver
[firefly-linux-kernel-4.4.55.git] / drivers / media / video / saa6588.c
index d17395c4f55cb9a17b1e2e5adb0b6bc00df85cf5..7b9859c33018e41803be47f094626cd6b17409c2 100644 (file)
@@ -32,7 +32,7 @@
 #include <asm/uaccess.h>
 
 
-#include "rds.h"
+#include <media/rds.h>
 
 /* Addresses to scan */
 static unsigned short normal_i2c[] = {
@@ -212,8 +212,10 @@ static void read_from_buf(struct saa6588 *s, struct rds_command *a)
        if (rd_blocks > s->block_count)
                rd_blocks = s->block_count;
 
-       if (!rd_blocks)
+       if (!rd_blocks) {
+               spin_unlock_irqrestore(&s->lock, flags);
                return;
+       }
 
        for (i = 0; i < rd_blocks; i++) {
                if (block_to_user_buf(s, buf_ptr)) {