Bug 8821 - BUG on "rmmod parport_pc"
Summary: BUG on "rmmod parport_pc"
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Parallel (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_parallel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-28 06:07 UTC by Stas Sergeev
Modified: 2007-07-28 10:09 UTC (History)
0 users

See Also:
Kernel Version: 2.6.22
Tree: Mainline
Regression: ---


Attachments

Description Stas Sergeev 2007-07-28 06:07:42 UTC
Most recent kernel where this bug did not occur:
dont know

Distribution:
F7

Hardware Environment:
x86_64 PC

Software Environment:
Linux lin2 2.6.22 #7 SMP PREEMPT Sat Jul 28 15:21:15 MSD 2007 x86_64 x86_64 x86_64 GNU/Linux

Problem Description:
# rmmod parport_pc
BUG: sleeping function called from invalid context at kernel/mutex.c:86
in_atomic():1, irqs_disabled():0

Call Trace:
 [<ffffffff8022651a>] complete+0x4a/0x60
 [<ffffffff80226af0>] __might_sleep+0xb0/0xd0
 [<ffffffff804b14bd>] mutex_lock+0x1d/0x40
 [<ffffffff802d76ae>] sysfs_hash_and_remove+0x5e/0x160
 [<ffffffff802d7f80>] sysfs_remove_file+0x10/0x20
 [<ffffffff803bea30>] device_remove_file+0x30/0x50
 [<ffffffff803becd1>] device_del+0x1d1/0x320
 [<ffffffff803c3a1e>] platform_device_del+0x1e/0x80
 [<ffffffff803c3ee1>] platform_device_unregister+0x11/0x20
 [<ffffffff881b28c8>] :parport_pc:parport_pc_exit+0x98/0xc5
 [<ffffffff8025154f>] sys_delete_module+0x16f/0x1f0
 [<ffffffff8020994e>] system_call+0x7e/0x83

Steps to reproduce:
# rmmod parport_pc
Comment 1 Andrew Morton 2007-07-28 10:09:21 UTC
Added parport_pc-locking-fix.patch to -mm.

Note You need to log in before you can comment on or make changes to this bug.