mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
fsi: scom: Fix NULL dereference
The chardev conversion forgot to copy the fsi_dev,
silly mistake, compounded by a testing mistake on
my side, this specific driver wasn't being tested
properly.
Fixes: d8f4587655
"fsi: scom: Convert to use the new chardev"
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
9840fcd8cc
commit
aa1221b258
1 changed files with 1 additions and 0 deletions
|
@ -598,6 +598,7 @@ static int scom_probe(struct device *dev)
|
||||||
kfree(scom);
|
kfree(scom);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
scom->fsi_dev = fsi_dev;
|
||||||
|
|
||||||
/* Create chardev for userspace access */
|
/* Create chardev for userspace access */
|
||||||
scom->dev.type = &fsi_cdev_type;
|
scom->dev.type = &fsi_cdev_type;
|
||||||
|
|
Loading…
Add table
Reference in a new issue