[libvirt] [PATCH] udev_device_get_devpath might return NULL
Cole Robinson
crobinso at redhat.com
Mon Dec 7 20:16:32 UTC 2009
On 12/07/2009 01:15 PM, Guido Günther wrote:
> Fix crash on daemon strdup in that case.
>
> udev_device_get_devpath returs NULL for
> '/sys/devices/virtual/block/dm-*' devices. In that case the later strdup
> segfaults. O.k. to apply?
>
> 19:12:46.319: info : udevGetDeviceProperty:111 : udev reports device 'dm-0' does not have property 'DRIVER'
> 19:12:46.319: debug : udevProcessStorage:954 : No devnode for '/devices/virtual/block/dm-0'
> 19:12:46.319: info : udevProcessDeviceListEntry:1261 : Failed to create node device for udev device '/sys/devices/virtual/block/dm-0'
>
> ---
> src/node_device/node_device_udev.c | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
ACK
- Cole
More information about the libvir-list
mailing list