Files
linux/drivers
Yunshui Jiang 4cf65845fd Input: cs40l50-vibra - fix potential NULL dereference in cs40l50_upload_owt()
The cs40l50_upload_owt() function allocates memory via kmalloc()
without checking for allocation failure, which could lead to a
NULL pointer dereference.

Return -ENOMEM in case allocation fails.

Signed-off-by: Yunshui Jiang <jiangyunshui@kylinos.cn>
Fixes: c38fe1bb5d ("Input: cs40l50 - Add support for the CS40L50 haptic driver")
Link: https://lore.kernel.org/r/20250704024010.2353841-1-jiangyunshui@kylinos.cn
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2025-07-03 22:20:46 -07:00
..
2025-04-22 16:06:05 +09:00
2025-04-11 17:32:38 -07:00
2025-05-08 11:56:12 +02:00
2025-04-08 19:30:58 +02:00
2025-05-06 12:59:12 -06:00
2025-04-18 10:05:49 -04:00