]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Dec 2022 16:01:35 +0000 (17:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Dec 2022 16:01:35 +0000 (17:01 +0100)
added patches:
revert-fbdev-fb_pm2fb-avoid-potential-divide-by-zero-error.patch

queue-4.9/revert-fbdev-fb_pm2fb-avoid-potential-divide-by-zero-error.patch [new file with mode: 0644]
queue-4.9/series

diff --git a/queue-4.9/revert-fbdev-fb_pm2fb-avoid-potential-divide-by-zero-error.patch b/queue-4.9/revert-fbdev-fb_pm2fb-avoid-potential-divide-by-zero-error.patch
new file mode 100644 (file)
index 0000000..6ae8de3
--- /dev/null
@@ -0,0 +1,34 @@
+From uli+cip@fpond.eu  Sun Dec  4 16:59:13 2022
+From: Ulrich Hecht <uli+cip@fpond.eu>
+Date: Fri,  2 Dec 2022 05:42:53 +0100
+Subject: Revert "fbdev: fb_pm2fb: Avoid potential divide by zero error"
+To: stable@vger.kernel.org
+Cc: sashal@kernel.org, gregkh@linuxfoundation.org, Ulrich Hecht <uli+cip@fpond.eu>
+Message-ID: <20221202044253.516827-1-uli+cip@fpond.eu>
+
+From: Ulrich Hecht <uli+cip@fpond.eu>
+
+This reverts commit 6577e903a9e193ad70f2db92eba57c4f335afd1a. It's a
+duplicate of a commit that is already in this tree
+(0f1174f4972ea9fad6becf8881d71adca8e9ca91).
+
+Signed-off-by: Ulrich Hecht <uli+cip@fpond.eu>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/video/fbdev/pm2fb.c |    5 -----
+ 1 file changed, 5 deletions(-)
+
+--- a/drivers/video/fbdev/pm2fb.c
++++ b/drivers/video/fbdev/pm2fb.c
+@@ -619,11 +619,6 @@ static int pm2fb_check_var(struct fb_var
+               return -EINVAL;
+       }
+-      if (!var->pixclock) {
+-              DPRINTK("pixclock is zero\n");
+-              return -EINVAL;
+-      }
+-
+       if (PICOS2KHZ(var->pixclock) > PM2_MAX_PIXCLOCK) {
+               DPRINTK("pixclock too high (%ldKHz)\n",
+                       PICOS2KHZ(var->pixclock));
index 865d4235cef12b26918d82e2ae2cf7526f17913e..347f6abd5f90cf087ad3a4824d5bb3291dfb360c 100644 (file)
@@ -53,3 +53,4 @@ asoc-ops-fix-bounds-check-for-_sx-controls.patch
 pinctrl-single-fix-potential-division-by-zero.patch
 iommu-vt-d-fix-pci-device-refcount-leak-in-dmar_dev_.patch
 tcp-udp-fix-memory-leak-in-ipv6_renew_options.patch
+revert-fbdev-fb_pm2fb-avoid-potential-divide-by-zero-error.patch