]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Feb 2013 00:42:53 +0000 (16:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Feb 2013 00:42:53 +0000 (16:42 -0800)
added patches:
sunvdc-fix-off-by-one-in-generic_request.patch

queue-3.0/series
queue-3.0/sunvdc-fix-off-by-one-in-generic_request.patch [new file with mode: 0644]

index 7c6dc98df560d6ddcb09132b958de895967b194a..3f1a87b63a2f15c357369e2c558df427b66631bf 100644 (file)
@@ -26,3 +26,4 @@ alsa-usb-audio-fix-roland-a-pro-support.patch
 alsa-usb-fix-processing-unit-descriptor-parsers.patch
 ext4-free-resources-in-some-error-path-in-ext4_fill_super.patch
 ext4-add-missing-kfree-on-error-return-path-in-add_new_gdb.patch
+sunvdc-fix-off-by-one-in-generic_request.patch
diff --git a/queue-3.0/sunvdc-fix-off-by-one-in-generic_request.patch b/queue-3.0/sunvdc-fix-off-by-one-in-generic_request.patch
new file mode 100644 (file)
index 0000000..8897037
--- /dev/null
@@ -0,0 +1,31 @@
+From 58e64b7e661116ea2e9989f43777e4a47319065c Mon Sep 17 00:00:00 2001
+From: "David S. Miller" <davem@davemloft.net>
+Date: Thu, 14 Feb 2013 11:49:01 -0800
+Subject: sunvdc: Fix off-by-one in generic_request().
+
+
+From: "David S. Miller" <davem@davemloft.net>
+
+[ Upstream commit f4d9605434c0fd4cc8639bf25cfc043418c52362 ]
+
+The 'operations' bitmap corresponds one-for-one with the operation
+codes, no adjustment is necessary.
+
+Reported-by: Mark Kettenis <mark.kettenis@xs4all.nl>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/block/sunvdc.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/block/sunvdc.c
++++ b/drivers/block/sunvdc.c
+@@ -461,7 +461,7 @@ static int generic_request(struct vdc_po
+       int op_len, err;
+       void *req_buf;
+-      if (!(((u64)1 << ((u64)op - 1)) & port->operations))
++      if (!(((u64)1 << (u64)op) & port->operations))
+               return -EOPNOTSUPP;
+       switch (op) {