Re: [PATCH v2] interface: fix udev_device_get_sysattr_value return value check

2023-09-11 Thread Martin Kletzander
On Fri, Sep 08, 2023 at 04:15:29PM +0300, Dmitry Frolov wrote: Reviewing the code I found that return value of function udev_device_get_sysattr_value() is dereferenced without a check. udev_device_get_sysattr_value() may return NULL by number of reasons. v2: VIR_DEBUG added, replaced

[PATCH v2] interface: fix udev_device_get_sysattr_value return value check

2023-09-08 Thread Dmitry Frolov
Reviewing the code I found that return value of function udev_device_get_sysattr_value() is dereferenced without a check. udev_device_get_sysattr_value() may return NULL by number of reasons. v2: VIR_DEBUG added, replaced STREQ(NULLSTR()) with STREQ_NULLABLE() Signed-off-by: Dmitry Frolov ---