Skip to content
Commit a3f2af25 authored by Pavitra Kumar's avatar Pavitra Kumar Committed by Mike Snitzer
Browse files

dm stripe: fix potential for leak in stripe_ctr error path



Fix a potential struct stripe_c leak that would occur if the
chunk_size exceeded the maximum allowed by dm_set_target_max_io_len
(UINT_MAX).  However, in practice there is no possibility of this
occuring given that chunk_size is of type uint32_t.  But it is good to
fix this to future-proof in case dm_set_target_max_io_len's
implementation were to change.

Signed-off-by: default avatarPavitra Kumar <pavitrak@nvidia.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 56ec16cb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment