git: sys/dev/disk/dm: Fix table/info priority
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sun Nov 8 06:53:40 PST 2015
commit f3c99fcee35668b893fbfd8113e8a6668d4ba6da
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sun Nov 8 07:46:43 2015 +0900
sys/dev/disk/dm: Fix table/info priority
Fix conditional in dm_table_status() added in e243a4fb to
avoid a potential bug, where DM_STATUS_TABLE_FLAG is set,
but table() handler is NULL, and results calling info().
Currently there are no target that implements info() but
does not implement table() (see f134a703 and 54b60c60).
Therefore this isn't likely to happen, but should be fixed
to avoid a potential bug.
Summary of changes:
sys/dev/disk/dm/dm_ioctl.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f3c99fcee35668b893fbfd8113e8a6668d4ba6da
--
DragonFly BSD source repository
More information about the Commits
mailing list