diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-05-06 19:56:29 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-05-06 19:58:03 +0200 |
commit | 7f629b74c4adc483dd5733bd9191b58cfbdd157f (patch) | |
tree | cff27989139c5830f9968139eb7b587bdde9478e /src/core | |
parent | f7e3c6f5f8cc8e5d2e73c96bd3fcd6decde85d66 (diff) |
device: avoid null pointer dereference
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/device.c b/src/core/device.c index 2c56c5a2d2..c09ea6c197 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -310,7 +310,7 @@ static int device_setup_unit(Manager *m, struct udev_device *dev, const char *pa r = unit_name_from_path(path, ".device", &e); if (r < 0) - return log_unit_error_errno(u->id, r, "Failed to generate device name: %m"); + return log_error_errno(r, "Failed to generate unit name from device path: %m"); u = manager_get_unit(m, e); |