[PATCH] Driver core: potentially fix use after free in class_device_attr_show