| Date | Thu, 15 Aug 2019 11:17:11 -0700 | From | Guenter Roeck <> | Subject | Re: [PATCH v2 09/22] watchdog: ziirave_wdt: Fix incorrect use of ARRAY_SIZE |
| |
On Mon, Aug 12, 2019 at 01:08:53PM -0700, Andrey Smirnov wrote: > Both memset() and ziirave_firm_write_block_data() expect length in > bytes as an argument, not a number of elements in array. It just > happens that in this particular case both values are equal. Modify the > code to use sizeof() instead. > > Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> > Cc: Chris Healy <cphealy@gmail.com> > Cc: Guenter Roeck <linux@roeck-us.net> > Cc: Rick Ramstetter <rick@anteaterllc.com> > Cc: linux-watchdog@vger.kernel.org > Cc: linux-kernel@vger.kernel.org
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
|