diff options
Diffstat (limited to 'drivers/firewire/fw-device.c')
-rw-r--r-- | drivers/firewire/fw-device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c index df2e9296ad5..e8f2dc3151b 100644 --- a/drivers/firewire/fw-device.c +++ b/drivers/firewire/fw-device.c @@ -145,7 +145,7 @@ fw_unit_uevent(struct device *dev, char **envp, int num_envp, "MODALIAS=%s", modalias)) return -ENOMEM; - out: + out: envp[i] = NULL; return 0; @@ -511,9 +511,9 @@ static void fw_device_init(struct work_struct *work) return; - error_with_device: + error_with_device: device_del(&device->device); - error: + error: cdev_del(&device->cdev); unregister_chrdev_region(device->device.devt, 1); put_device(&device->device); |