Files
linux/drivers/ptp
Dan Carpenter 81d23d2a24 ptp: fix integer overflow in max_vclocks_store
On 32bit systems, the "4 * max" multiply can overflow.  Use kcalloc()
to do the allocation to prevent this.

Fixes: 44c494c8e3 ("ptp: track available ptp vclocks information")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Wojciech Drewek <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Reviewed-by: Heng Qi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
2024-06-18 13:26:44 -07:00
..
2024-05-09 20:25:11 -07:00
2024-03-11 13:42:09 -07:00
2024-03-11 13:42:09 -07:00
2024-04-08 16:16:56 +02:00