[PATCH] raw driver: cleanups and small fixes
- There was an unchecked bdget(). bdget can fail due to ENOMEM. - rework the error handling implementation in raw_ctl_ioctl(). - Replace MOD_INC_USE_COUNT with try_module_get(THIS_MODULE). This allows the raw module to be unloaded again. The core kernel has already taken a ref on the module prior to entering the ioctl, so try_module_get() cannot fail.
Showing
Please register or sign in to comment