diff options
author | Paolo Abeni <pabeni@redhat.com> | 2019-02-21 17:43:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-22 16:05:11 -0800 |
commit | 424a7cd078401591fc45587ffb2c012d7f402fb7 (patch) | |
tree | 346f6616db687c22ad228fb260b4e6e47053e9e3 /fs/btrfs/dev-replace.c | |
parent | 5de362df44d71fc8f6b153ae4eaa2a1284c84490 (diff) |
udpv6: fix possible user after free in error handler
Before derefencing the encap pointer, commit e7cc082455cb ("udp: Support
for error handlers of tunnels with arbitrary destination port") checks
for a NULL value, but the two fetch operation can race with removal.
Fix the above using a single access.
Also fix a couple of type annotations, to make sparse happy.
Fixes: e7cc082455cb ("udp: Support for error handlers of tunnels with arbitrary destination port")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions