Looking up an obj, immediate dropping the acquired reference and then continuing to use it isn't how this is supposed to work. Fix this by holding a reference for the entire function. While at it stop grabbing dev->struct_mutex, it doesn't protect anything here. Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| mgag200_cursor.c | ||
| mgag200_drv.c | ||
| mgag200_drv.h | ||
| mgag200_fb.c | ||
| mgag200_i2c.c | ||
| mgag200_main.c | ||
| mgag200_mode.c | ||
| mgag200_reg.h | ||
| mgag200_ttm.c | ||