gpiolib: cdev: allocate linereq using kvzalloc()
authorKent Gibson <warthog618@gmail.com>
Thu, 21 Dec 2023 01:20:38 +0000 (09:20 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 27 Dec 2023 14:43:56 +0000 (15:43 +0100)
commitb718fbfea9df4f715ddd4c61a671226fb11bb232
treeb937250f9844b442ffde35ac814b1fc4b76d2f11
parentede7511e7c22c9542a699ddff9f32de74e0bb972
gpiolib: cdev: allocate linereq using kvzalloc()

The size of struct linereq may exceed a page, so allocate space for
it using kvzalloc() instead of kzalloc() to handle the case where
memory is heavily fragmented and kzalloc() cannot find a sufficient
contiguous region.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-cdev.c