aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-07-13 10:45:17 +0300
committerIlya Dryomov <[email protected]>2017-07-17 14:54:58 +0200
commit00c8ebb360937bbc5da02929d62fcbf6a72801eb (patch)
treee35bf3150b2251ac2db8d16a50576ef975943e3a /net/switchdev/switchdev.c
parente67ae2b7b23b283e657865b498b151e6a17b919d (diff)
libceph: NULL deref on osdmap_apply_incremental() error path
There are hidden gotos in the ceph_decode_* macros. We need to set the "err" variable on these error paths otherwise we end up returning ERR_PTR(0) which is NULL. It causes NULL dereferences in the callers. Fixes: 6f428df47dae ("libceph: pg_upmap[_items] infrastructure") Signed-off-by: Dan Carpenter <[email protected]> [[email protected]: similar bug in osdmap_decode(), changelog tweak] Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions