Patch "Revert "fbdev: fb_pm2fb: Avoid potential divide by zero error"" has been added to the 4.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Revert "fbdev: fb_pm2fb: Avoid potential divide by zero error"

to the 4.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     revert-fbdev-fb_pm2fb-avoid-potential-divide-by-zero-error.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From uli+cip@xxxxxxxx  Sun Dec  4 16:59:13 2022
From: Ulrich Hecht <uli+cip@xxxxxxxx>
Date: Fri,  2 Dec 2022 05:42:53 +0100
Subject: Revert "fbdev: fb_pm2fb: Avoid potential divide by zero error"
To: stable@xxxxxxxxxxxxxxx
Cc: sashal@xxxxxxxxxx, gregkh@xxxxxxxxxxxxxxxxxxx, Ulrich Hecht <uli+cip@xxxxxxxx>
Message-ID: <20221202044253.516827-1-uli+cip@xxxxxxxx>

From: Ulrich Hecht <uli+cip@xxxxxxxx>

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@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 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));


Patches currently in stable-queue which might be from uli+cip@xxxxxxxx are

queue-4.9/revert-fbdev-fb_pm2fb-avoid-potential-divide-by-zero-error.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux