diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-10-07 11:59:39 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-20 13:51:54 +0300 |
commit | 77ff34a56b695e228e6daf30ee30be747973d6e8 (patch) | |
tree | 4648938497190988eb6340952c3291cc68dc2b47 /drivers/net/ethernet/emulex | |
parent | 9709c6d7594d8c11f361bd7844c4c949908ba92f (diff) | |
download | linux-77ff34a56b695e228e6daf30ee30be747973d6e8.tar.xz |
thermal: core: prevent potential string overflow
[ Upstream commit c99626092efca3061b387043d4a7399bf75fbdd5 ]
The dev->id value comes from ida_alloc() so it's a number between zero
and INT_MAX. If it's too high then these sprintf()s will overflow.
Fixes: 203d3d4aa482 ("the generic thermal sysfs driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/emulex')
0 files changed, 0 insertions, 0 deletions