diff options
Diffstat (limited to 'drivers/char/misc.c')
-rw-r--r-- | drivers/char/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/misc.c b/drivers/char/misc.c index cd650ca8c679..abdafd488980 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c | |||
@@ -242,7 +242,7 @@ int misc_deregister(struct miscdevice *misc) | |||
242 | { | 242 | { |
243 | int i = DYNAMIC_MINORS - misc->minor - 1; | 243 | int i = DYNAMIC_MINORS - misc->minor - 1; |
244 | 244 | ||
245 | if (list_empty(&misc->list)) | 245 | if (WARN_ON(list_empty(&misc->list))) |
246 | return -EINVAL; | 246 | return -EINVAL; |
247 | 247 | ||
248 | mutex_lock(&misc_mtx); | 248 | mutex_lock(&misc_mtx); |