[PATCH 4.9 246/271] hwmon: (core) Fix double-free in __hwmon_device_register()