Re: [PATCH] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-08-14 Thread Guenter Roeck
On Thu, Jul 27, 2017 at 08:50:43PM +0800, Huibin Hong wrote: > If top is 15, (1 << (16 + top)) may be negative. > > Change-Id: I76e4a603a54f093e64a4b266008570e3afcdb35a No Change-Id in upstream patches, please. > Signed-off-by: Huibin Hong I am having trouble

Re: [PATCH] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-08-14 Thread Guenter Roeck
On Thu, Jul 27, 2017 at 08:50:43PM +0800, Huibin Hong wrote: > If top is 15, (1 << (16 + top)) may be negative. > > Change-Id: I76e4a603a54f093e64a4b266008570e3afcdb35a No Change-Id in upstream patches, please. > Signed-off-by: Huibin Hong I am having trouble applying this patch. What is its

[PATCH] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-07-27 Thread Huibin Hong
If top is 15, (1 << (16 + top)) may be negative. Change-Id: I76e4a603a54f093e64a4b266008570e3afcdb35a Signed-off-by: Huibin Hong --- drivers/watchdog/dw_wdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/dw_wdt.c

[PATCH] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-07-27 Thread Huibin Hong
If top is 15, (1 << (16 + top)) may be negative. Change-Id: I76e4a603a54f093e64a4b266008570e3afcdb35a Signed-off-by: Huibin Hong --- drivers/watchdog/dw_wdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c index