Here is my kernel log for the test version I've posted above.
As far as I can see, sd_start function is called each time when some application wants to access the video device, but when it is called the first time (when a usb cable was insterted), sd struct is almost empty and without null check this leads to kernel oops.
Here is my kernel log for the test version I've posted above.
As far as I can see, sd_start function is called each time when some application wants to access the video device, but when it is called the first time (when a usb cable was insterted), sd struct is almost empty and without null check this leads to kernel oops.