]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix use after free in O_DIRECT
authorJosef Bacik <josef@redhat.com>
Fri, 19 Nov 2010 14:41:10 +0000 (09:41 -0500)
committerJosef Bacik <josef@redhat.com>
Thu, 9 Dec 2010 18:57:10 +0000 (13:57 -0500)
commit626999c0f2b7c78f243f4412e8b5e35bc6f5419a
treef8a6074a34e988e613eb308d4aeb91fd8fb2e968
parentbc573e55b425a39038db031acd40da0ebfaff6e1
Btrfs: fix use after free in O_DIRECT

This fixes a bug where we use dip after we have freed it.  Instead just use the
file_offset that was passed to the function.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c