summaryrefslogtreecommitdiffstats
path: root/crypto/seed.c
diff options
context:
space:
mode:
authorChandan Rajendra <chandan@linux.vnet.ibm.com>2016-01-21 15:56:00 +0530
committerDavid Sterba <dsterba@suse.com>2016-02-01 19:24:29 +0100
commit5f4dc8fc835bbb902f5c2aa3de3978f3f518aa73 (patch)
tree8ea4c13c613e02a98a17271197790266ea6286bc /crypto/seed.c
parent298cfd368364912076fd84fbceb0df864da42a67 (diff)
downloadop-kernel-dev-5f4dc8fc835bbb902f5c2aa3de3978f3f518aa73.zip
op-kernel-dev-5f4dc8fc835bbb902f5c2aa3de3978f3f518aa73.tar.gz
Btrfs: btrfs_submit_direct_hook: Handle map_length < bio vector length
In subpagesize-blocksize scenario, map_length can be less than the length of a bio vector. Such a condition may cause btrfs_submit_direct_hook() to submit a zero length bio. Fix this by comparing map_length against block size rather than with bv_len. Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'crypto/seed.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud