[PATCH v3 04/12] gpio: rockchip: resolve underflow issue

Andy Shevchenko andriy.shevchenko at linux.intel.com
Tue Sep 3 08:55:01 PDT 2024


On Tue, Sep 03, 2024 at 03:36:41PM +0800, Ye Zhang wrote:
> div_reg may be < 0 if debounce is zero, causing the unsigned int to
> overflow.

...

> -	if (bank->gpio_type == GPIO_TYPE_V2 && !IS_ERR(bank->db_clk)) {
> +	if ((bank->gpio_type == GPIO_TYPE_V2) && !IS_ERR(bank->db_clk))

Stray change.

-- 
With Best Regards,
Andy Shevchenko





More information about the Linux-rockchip mailing list