UBI_DEV_NUM_AUTO
err = ubi_attach_mtd_dev(mtd, UBI_DEV_NUM_AUTO, 0, 0, false, false);
if (err || p->ubi_num < UBI_DEV_NUM_AUTO) {
p->ubi_num = UBI_DEV_NUM_AUTO;
if (ubi_num == UBI_DEV_NUM_AUTO) {
(req.ubi_num < 0 && req.ubi_num != UBI_DEV_NUM_AUTO)) {