Use the proper class iterator function instead of mucking around in the internals of the class structures. Cc: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>