summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorSuma Hegde <suma.hegde@amd.com>2025-08-07 10:06:37 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-29 14:09:00 +0100
commit782977c0d8ba432b6fd3d5d0d87016a523ec1c69 (patch)
treeb9135039a882a65c6e1a90617fc237942566379e /include/net/aligned_data.h
parentca44ae51b99c0388d60a7879bce5fc0eafe4f52f (diff)
platform/x86/amd/hsmp: Ensure sock->metric_tbl_addr is non-NULL
commit 2c78fb287e1f430b929f2e49786518350d15605c upstream. If metric table address is not allocated, accessing metrics_bin will result in a NULL pointer dereference, so add a check. Fixes: 5150542b8ec5 ("platform/x86/amd/hsmp: add support for metrics tbl") Signed-off-by: Suma Hegde <suma.hegde@amd.com> Link: https://lore.kernel.org/r/20250807100637.952729-1-suma.hegde@amd.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> [ Minor context change fixed. ] Signed-off-by: Alva Lan <alvalan9@foxmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions