diff options
author | Ben Dooks <ben@fluff.org> | 2008-03-04 15:09:06 -0800 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-04-04 11:29:06 +1100 |
commit | f94c4dc4a413edd789673e2decd561d6ed94b684 (patch) | |
tree | 3e977de10c1526a85c18453593561cb3426c6261 /fs/partitions | |
parent | 83b33e4f05ff137d4cc03f3622ab3b95b8d16423 (diff) |
sysdev: detect multiple driver registrations
I've just found how easy it is to accidentally register a sysdev_driver for
two different classes. When this happens, bad things happen as the
sysdev_driver structure keeps has the list entry for the driver
registration.
The following patch makes a WARN_ON() if this happens, although I think
BUG_ON or returning -EAGAIN could also be valid responses to this.
Signed-off-by: Ben Dooks <ben@fluff.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/partitions')
0 files changed, 0 insertions, 0 deletions