diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2020-12-20 23:17:17 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-12 19:06:58 +0300 |
commit | 62a1255152be2cb4291fb3f0208bd837d33a8e2d (patch) | |
tree | e67f06d83c855d28a8d805d61d7c48bdb64fbe87 /Documentation/driver-api/media | |
parent | fb18802a338b36f675a388fc03d2aa504a0d0899 (diff) | |
download | linux-62a1255152be2cb4291fb3f0208bd837d33a8e2d.tar.xz |
media: v4l: ioctl: Use kmalloc to allocate a small chunk of memory
kvmalloc() was used to allocate the temporary memory buffer that was used
to contain both the IOCTL argument as well as a possible array argument
that could have been large. Now that the two are separated, the IOCTL
argument is known to be small in size. Use kmalloc to allocate it instead
of kvmalloc. Similarly for releasing it.
Suggested-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'Documentation/driver-api/media')
0 files changed, 0 insertions, 0 deletions