We dereference at least two arguments: cluster_log and origin_dev. Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com> --- drivers/md/dm-ploop-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/dm-ploop-target.c b/drivers/md/dm-ploop-target.c index 5ae0c624c8fb..7b5f81955abe 100644 --- a/drivers/md/dm-ploop-target.c +++ b/drivers/md/dm-ploop-target.c @@ -118,7 +118,7 @@ static int ploop_ctr(struct dm_target *ti, unsigned int argc, char **argv) struct ploop *ploop; int i, ret; - if (argc < 1) + if (argc < 2) return -EINVAL; ploop = kzalloc(sizeof(*ploop), GFP_KERNEL); _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel