aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorEric Whitney <[email protected]>2020-04-30 14:53:19 -0400
committerTheodore Ts'o <[email protected]>2020-06-03 23:16:50 -0400
commit779e26517b3600830fe58933d5f97627711c9435 (patch)
tree50504342694ad0f84a357bdb4da070003a624556 /drivers/fpga/fpga-mgr.c
parentbee6cf00c7f17df27c842c169db31d53bdd775ba (diff)
ext4: clean up GET_BLOCKS_PRE_IO error handling
If the call to ext4_split_convert_extents() fails in the EXT4_GET_BLOCKS_PRE_IO case within ext4_ext_handle_unwritten_extents(), error out through the exit point at function end rather than jumping through an intermediate point. Fix the error handling in the event ext4_split_convert_extents() returns 0, which it shouldn't do when splitting an existing extent. The current code returns the passed in value of allocated (which is likely non-zero) while failing to set m_flags, m_pblk, and m_len. Signed-off-by: Eric Whitney <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions