aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2013-08-23 11:37:17 +0000
committerGreg Kroah-Hartman <[email protected]>2013-08-23 17:31:47 +0000
commit3955dfa8216f712bc204a5ad2f4e51efff252fde (patch)
treefd4e91763cbf0063028bcc1ec2d2ea5f94437419 /fs/btrfs/dev-replace.c
parentMerge tag 'iio-fixes-for-3.11c' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-3955dfa8216f712bc204a5ad2f4e51efff252fde.tar.gz
kernel-3955dfa8216f712bc204a5ad2f4e51efff252fde.zip
staging: comedi: bug-fix NULL pointer dereference on failed attach
Commit dcd7b8bd63cb81c5b973bf86510ca3c80bbbd162 ("staging: comedi: put module _after_ detach" by myself) reversed a couple of calls in `comedi_device_attach()` when recovering from an error returned by the low-level driver's 'attach' handler. Unfortunately, that introduced a NULL pointer dereference bug as `dev->driver` is NULL after the call to `comedi_device_detach()`. We still have a pointer to the low-level comedi driver structure in the `driv` variable, so use that instead. Signed-off-by: Ian Abbott <[email protected]> Cc: <[email protected]> # 3.10+ Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions