[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250611161207.4031677-1-alexguo1023@gmail.com>
Date: Wed, 11 Jun 2025 12:12:07 -0400
From: Alex Guo <alexguo1023@...il.com>
To: geert@...ux-m68k.org
Cc: alexguo1023@...il.com,
deller@....de,
dri-devel@...ts.freedesktop.org,
linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fbdev: pm3fb: Fix potential divide by zero
Hi Greet,
Thanks for your confirmation and suggestions.
I added this patch based on existing checks on var->pixclock in other drivers, such as savagefb_check_var, nvidiafb_check_var, etc.
Are you suggesting that it is better to replace an invalid value (var->pixclock == 0) with a default valid value, instead of returning -EINVAL? If so, could you advise what a suitable default value would be for this case?
Actually, I have found a few similar issues in other functions as well. I would like to make sure I am addressing them in the correct way.
Best,
Alex
Powered by blists - more mailing lists