[devmapper] Check mapname length
authorChristophe Varoqui <root@xa-s05.(none)>
Fri, 9 Dec 2005 15:54:48 +0000 (16:54 +0100)
committerChristophe Varoqui <root@xa-s05.(none)>
Fri, 9 Dec 2005 15:54:48 +0000 (16:54 +0100)
commit7fe3b9253292380de3811739799f430ce47303e7
treebb46375833788ef9fb03e078514ec9905965e1d3
parent75c8de24717de5e987dc5a0be416957737469af2
[devmapper] Check mapname length

dm_task_get_name might return a zero-length string, which also
seem to indicate an invalid mapname. Fix dm_mapname() to always
return NULL if either no mapname or an zero-length mapname
was returned.

Signed-off-by: Hannes Reinecke <hare@suse.de>
kpartx/devmapper.c
libmultipath/devmapper.c