aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_user.c
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@openvz.org>2017-12-13 13:55:13 -0800
committerNicholas Bellinger <nab@linux-iscsi.org>2018-01-12 15:07:28 -0800
commit9960f85181dd08cda03fddcf0bc8d81190bec4eb (patch)
tree69c7bb7df93a367bdbd5dd665f1ada7260d41f6e /drivers/target/target_core_user.c
parenttarget/iscsi: avoid NULL dereference in CHAP auth error path (diff)
downloadlinux-dev-9960f85181dd08cda03fddcf0bc8d81190bec4eb.tar.xz
linux-dev-9960f85181dd08cda03fddcf0bc8d81190bec4eb.zip
target: don't call an unmap callback if a range length is zero
If a length of a range is zero, it means there is nothing to unmap and we can skip this range. Here is one more reason, why we have to skip such ranges. An unmap callback calls file_operations->fallocate(), but the man page for the fallocate syscall says that fallocate(fd, mode, offset, let) returns EINVAL, if len is zero. It means that file_operations->fallocate() isn't obligated to handle zero ranges too. Signed-off-by: Andrei Vagin <avagin@openvz.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_user.c')
0 files changed, 0 insertions, 0 deletions