coresight: core: Switch to krealloc_array()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 14 Jun 2021 17:58:56 +0000 (11:58 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 07:31:26 +0000 (09:31 +0200)
commit0ae8d798c82777c30aa48ab310fe21cbb8f2be4c
tree7a4486558fbc27fb950fafa628f62d656593ce83
parent5e77886d0aa9a882424f6a4ccb3eca4dca43b4a0
coresight: core: Switch to krealloc_array()

Let the krealloc_array() check for multiplication overflow.

Link: https://lore.kernel.org/r/20210520135041.56163-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20210614175901.532683-2-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-core.c