]> git.baikalelectronics.ru Git - kernel.git/commit
ptp_ocp: replace kzalloc(x*y) by kcalloc(y, x)
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 8 Jun 2022 12:03:58 +0000 (15:03 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 15:36:08 +0000 (08:36 -0700)
commita1047dbf7826c48cd6b6db6d7d10fab5f24e713e
treedb91fa679917d3e036848a3668450a68da020ee9
parentc4376e3246a4452311f73d45d583f567650ca7ee
ptp_ocp: replace kzalloc(x*y) by kcalloc(y, x)

While here it may be no difference, the kcalloc() has some checks
against overflow and it's logically correct to call it for an array.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Vadim Fedorenko <vfedorenko@novek.ru>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c