[lkml]   [2003]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectBUG in driver model class.c

There is a bug in drivers/base/class.c in 2.5.70. Near the start of the
routine class_device_add() are the lines

if (class_dev->dev)

But there's nothing to undo this get_device, either in the error return
part of class_device_add() or in class_device_del().

I assume that either this get_device() doesn't belong there or else there
should be corresponding put_device() calls in the other two spots.
Whichever is the case, it should be easy for you to fix.

Alan Stern

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:36    [W:0.065 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site