* git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm: dm table: fix blk_stack_limits arg to use bytes not sectors dm exception store: really fix type lookup
···195195 struct dm_exception_store **store)196196{197197 int r = 0;198198- struct dm_exception_store_type *type;198198+ struct dm_exception_store_type *type = NULL;199199 struct dm_exception_store *tmp_store;200200 char persistent;201201···211211 }212212213213 persistent = toupper(*argv[1]);214214- if (persistent != 'P' && persistent != 'N') {214214+ if (persistent == 'P')215215+ type = get_type("P");216216+ else if (persistent == 'N')217217+ type = get_type("N");218218+ else {215219 ti->error = "Persistent flag is not P or N";216220 return -EINVAL;217221 }218222219219- type = get_type(&persistent);220223 if (!type) {221224 ti->error = "Exception store type not recognised";222225 r = -EINVAL;
+1-1
drivers/md/dm-table.c
···495495 return 0;496496 }497497498498- if (blk_stack_limits(limits, &q->limits, start) < 0)498498+ if (blk_stack_limits(limits, &q->limits, start << 9) < 0)499499 DMWARN("%s: target device %s is misaligned",500500 dm_device_name(ti->table->md), bdevname(bdev, b));501501