summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorNeilBrown2019-01-03 01:04:08 +0100
committerJeff Layton2019-01-03 02:14:50 +0100
commitbf77ae4c98d721a9aae3840970d46669a78e034a (patch)
tree1455f36d7c23d38d42b0fa8709660c0e91bfd57c /drivers/macintosh
parentMerge tag 'iommu-updates-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-qcow2-linux-bf77ae4c98d721a9aae3840970d46669a78e034a.tar.gz
kernel-qcow2-linux-bf77ae4c98d721a9aae3840970d46669a78e034a.tar.xz
kernel-qcow2-linux-bf77ae4c98d721a9aae3840970d46669a78e034a.zip
locks: fix error in locks_move_blocks()
After moving all requests from fl->fl_blocked_requests to new->fl_blocked_requests it is nonsensical to do anything to all the remaining elements, there aren't any. This should do something to all the requests that have been moved. For simplicity, it does it to all requests in the target list. Setting "f->fl_blocker = new" to all members of new->fl_blocked_requests is "obviously correct" as it preserves the invariant of the linkage among requests. Reported-by: syzbot+239d99847eb49ecb3899@syzkaller.appspotmail.com Fixes: 5946c4319ebb ("fs/locks: allow a lock request to block other requests.") Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions