mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Check for missing reply_uuid
This commit is contained in:
parent
65d01ed981
commit
74b5744b4b
@ -1,5 +1,6 @@
|
||||
Version 1.02.71 -
|
||||
====================================
|
||||
Check for missing reply_uuid in dm_event_get_registered_device().
|
||||
Check for allocation failure in dmeventd restart().
|
||||
Add few missing allocation failures tests in dmsetup.
|
||||
Fix potential risk of writing in front of buffer in _sysfs_get_dm_name().
|
||||
|
@ -743,6 +743,10 @@ int dm_event_get_registered_device(struct dm_event_handler *dmevh, int next)
|
||||
msg.data = NULL;
|
||||
|
||||
_dm_event_handler_clear_dev_info(dmevh);
|
||||
if (!reply_uuid) {
|
||||
ret = -ENXIO; /* dmeventd probably gave us bogus uuid back */
|
||||
goto fail;
|
||||
}
|
||||
dmevh->uuid = dm_strdup(reply_uuid);
|
||||
if (!dmevh->uuid) {
|
||||
ret = -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user