commit | 028b39e314dd8b4ab8d3ac401285db40ab1f39d8 | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bart.vanassche@sandisk.com> | Tue Jun 28 16:36:46 2016 +0200 |
committer | Mike Snitzer <snitzer@redhat.com> | Fri Jul 01 10:54:11 2016 -0400 |
tree | 2166607510865429e81e9a7ad52062f9817a919d | |
parent | 350b53932810840a0c68467d7d78795010929940 [diff] |
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>