]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel_pmc_core: fix bound check in pmc_core_mphy_pg_show()
authorGaurav Singh <gaurav1086@gmail.com>
Wed, 24 Jun 2020 03:31:25 +0000 (23:31 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 9 Jul 2020 19:57:27 +0000 (22:57 +0300)
commitdd0a85dd7efd6ed18a1ab553dbe08dc8a205a268
tree9d2c90ea96d2bd3e6cd6a89453d81eee1366a94d
parentf42b2c71f347b23d712557624efd9f8f035cf025
platform/x86: intel_pmc_core: fix bound check in pmc_core_mphy_pg_show()

Check bounds before accessing map[] array.

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_core.c