aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorAnton Vasilyev <[email protected]>2017-08-21 14:49:58 +0000
committerBartlomiej Zolnierkiewicz <[email protected]>2017-08-21 14:49:58 +0000
commit7af9a52e33ea07937fc216104e2cf3d4e690b43f (patch)
tree9e1e1192883abd93f5edfa81192340d3ceba51b7 /fs/btrfs/dev-replace.c
parentfbdev: i810: make fb_ops const (diff)
downloadkernel-7af9a52e33ea07937fc216104e2cf3d4e690b43f.tar.gz
kernel-7af9a52e33ea07937fc216104e2cf3d4e690b43f.zip
video: fbdev: udlfb: Fix use after free on dlfb_usb_probe error path
If dlfb_usb_probe drops to error path then there is only one kref_init() call and no kref_get(), so second kref_put() leads to use after free. The patch removes superfluous kref_put on dlfb_usb_probe error path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev <[email protected]> Cc: Bernie Thompson <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions