dm ioctl: Simplify parameter buffer management code
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 28 Jun 2016 14:36:46 +0000 (16:36 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 1 Jul 2016 14:54:11 +0000 (10:54 -0400)
commit028b39e314dd8b4ab8d3ac401285db40ab1f39d8
tree2166607510865429e81e9a7ad52062f9817a919d
parent350b53932810840a0c68467d7d78795010929940
dm ioctl: Simplify parameter buffer management code

Merge the two DM_PARAMS_[KV]MALLOC flags into a single flag.

Doing so avoids the crashes seen with previous attempts to consolidate
buffer management to use kvfree() without first flagging that memory had
actually been allocated.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ioctl.c