]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/char/sx.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes...
[mv-sheeva.git] / drivers / char / sx.c
index d7c416566bd9e6459f963be75f1044d3cbcf96a7..518f2a25d91ec6b1a208c6fe233c505a7395aa47 100644 (file)
@@ -1789,7 +1789,7 @@ static long sx_fw_ioctl(struct file *filp, unsigned int cmd,
                                                nbytes - i : SX_CHUNK_SIZE)) {
                                        kfree(tmp);
                                        rc = -EFAULT;
-                                       break;
+                                       goto out;
                                }
                                memcpy_toio(board->base2 + offset + i, tmp,
                                                (i + SX_CHUNK_SIZE > nbytes) ?