dm verity fec: fix bufio leaks
authorSami Tolvanen <samitolvanen@google.com>
Fri, 31 Mar 2017 19:32:45 +0000 (12:32 -0700)
committerMike Snitzer <snitzer@redhat.com>
Fri, 31 Mar 2017 19:44:25 +0000 (15:44 -0400)
commit86e3e83b443669dd2bcc5c8a83b23e3aa0694c0d
tree6ee3cca754ded2955d911bce8bd931c2d1c2f0e4
parent7a0c5c5b834fb60764b494b0e39c239da3b0774b
dm verity fec: fix bufio leaks

Buffers read through dm_bufio_read() were not released in all code paths.

Fixes: a739ff3f543a ("dm verity: add support for forward error correction")
Cc: stable@vger.kernel.org # v4.5+
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-verity-fec.c