sys/dev/disk/dm: Fix table/info priority
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 7 Nov 2015 22:46:43 +0000 (07:46 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 8 Nov 2015 14:32:02 +0000 (23:32 +0900)
commitf3c99fcee35668b893fbfd8113e8a6668d4ba6da
tree5b0852a4df01a4bdc36327c176fea72669f29ecb
parent895c8e5259048db7c056e1902d4d48c0e3701c6a
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.
sys/dev/disk/dm/dm_ioctl.c