[PATCH 1/3] driver core: class: Fix wild pointer dereference in API class_dev_iter_next()