[libvirt] [PATCH] udev_device_get_devpath might return NULL

Guido Günther agx at sigxcpu.org
Tue Dec 8 11:02:45 UTC 2009


On Mon, Dec 07, 2009 at 03:16:32PM -0500, Cole Robinson wrote:
> 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
Pushed. Thanks.
 -- Guido




More information about the libvir-list mailing list