Tag: f37fdf3ff744bffc35a8f1b9d7d655d8d88a0404

V4L/DVB (7036): radio: Use video_device_release rather than kfree

Author: Julia Lawall <julia@diku.dk> The file drivers/media/video/videodev.c defines both video_device_alloc and video_device_release. These are essentially just kzmalloc and kfree, respectively, but it seems better to use video_device_release, as done in the other media files, rather than kfree, in case the implementation some day changes. The problem was found using the following semantic match. (http://www.emn.fr/x-info/coccinelle/) // …

Continue reading