commit | 8e890c1ab1b1e0f765cd8da82c4dee011698a5e8 | [log] [tgz] |
---|---|---|
author | Helen Koike <helen.koike@collabora.com> | Fri Apr 26 17:09:55 2019 -0300 |
committer | Mike Snitzer <snitzer@redhat.com> | Tue Apr 30 16:51:23 2019 -0400 |
tree | 3722a8c549b69287410427e2820bc422aa762a11 | |
parent | e4f3fabd67480bf2ad3f71aa6126ffb8bb7dc712 [diff] |
dm init: fix max devices/targets checks dm-init should allow up to DM_MAX_{DEVICES,TARGETS} for devices/targets, and not DM_MAX_{DEVICES,TARGETS} - 1. Fix the checks and also fix the error message when the number of devices is surpassed. Fixes: 6bbc923dfcf57d ("dm: add support to directly boot to a mapped device") Cc: stable@vger.kernel.org Signed-off-by: Helen Koike <helen.koike@collabora.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>