Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dm ioctl: a small code cleanup in list_version_get_info

No need to modify info->vers if we overwrite it immediately.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>

authored by

Mikulas Patocka and committed by
Mike Snitzer
d043f9a1 19eb1650

+1 -1
+1 -1
drivers/md/dm-ioctl.c
··· 681 681 strcpy(info->vers->name, tt->name); 682 682 683 683 info->old_vers = info->vers; 684 - info->vers = align_ptr(((void *) ++info->vers) + strlen(tt->name) + 1); 684 + info->vers = align_ptr((void *)(info->vers + 1) + strlen(tt->name) + 1); 685 685 } 686 686 687 687 static int __list_versions(struct dm_ioctl *param, size_t param_size, const char *name)