summaryrefslogtreecommitdiffstats
path: root/firmware/whiteheat_loader.HEX
diff options
context:
space:
mode:
authorChristian Engelmayer <cengelma@gmx.at>2015-10-21 00:50:06 +0200
committerChris Mason <clm@fb.com>2015-10-21 18:10:02 -0700
commit0f89abf56abbd0e1c6e3cef9813e6d9f05383c1e (patch)
treef89024b26a6294f420e5957c191f53cb778d6d62 /firmware/whiteheat_loader.HEX
parent0f6925fa2907df58496cabc33fa4677c635e2223 (diff)
downloadop-kernel-dev-0f89abf56abbd0e1c6e3cef9813e6d9f05383c1e.zip
op-kernel-dev-0f89abf56abbd0e1c6e3cef9813e6d9f05383c1e.tar.gz
btrfs: fix possible leak in btrfs_ioctl_balance()
Commit 8eb934591f8b ("btrfs: check unsupported filters in balance arguments") adds a jump to exit label out_bargs in case the argument check fails. At this point in addition to the bargs memory, the memory for struct btrfs_balance_control has already been allocated. Ownership of bctl is passed to btrfs_balance() in the good case, thus the memory is not freed due to the introduced jump. Make sure that the memory gets freed in any case as necessary. Detected by Coverity CID 1328378. Signed-off-by: Christian Engelmayer <cengelma@gmx.at> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'firmware/whiteheat_loader.HEX')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud