summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorMa Ke <make24@iscas.ac.cn>2025-07-17 10:23:07 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-01 09:51:26 +0100
commit32a017d82afb25c0a9f953dc64e65e0d207d717b (patch)
treea6903203ccaf548c0b60eaf19c73d5b81374ee80 /include/net/aligned_data.h
parent5240b1a2e0cba0201cb6b1cc8b0f11a530d13914 (diff)
bus: fsl-mc: Fix potential double device reference in fsl_mc_get_endpoint()
commit bddbe13d36a02d5097b99cf02354d5752ad1ac60 upstream. The fsl_mc_get_endpoint() function may call fsl_mc_device_lookup() twice, which would increment the device's reference count twice if both lookups find a device. This could lead to a reference count leak. Found by code review. Cc: stable@vger.kernel.org Fixes: 1ac210d128ef ("bus: fsl-mc: add the fsl_mc_get_endpoint function") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Simon Horman <horms@kernel.org> Fixes: 8567494cebe5 ("bus: fsl-mc: rescan devices if endpoint not found") Link: https://patch.msgid.link/20250717022309.3339976-1-make24@iscas.ac.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions