diff options
author | Dan Carpenter <[email protected]> | 2021-11-24 17:50:41 +0300 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2021-12-07 09:08:58 +0100 |
commit | 3ec6ca6b1a8e64389f0212b5a1b0f6fed1909e45 (patch) | |
tree | 45841d1625e6a512117778faa30e0a57612cad48 /scripts/gdb/linux/proc.py | |
parent | 94cddf1e9227a171b27292509d59691819c458db (diff) |
can: sja1000: fix use after free in ems_pcmcia_add_card()
If the last channel is not available then "dev" is freed. Fortunately,
we can just use "pdev->irq" instead.
Also we should check if at least one channel was set up.
Fixes: fd734c6f25ae ("can/sja1000: add driver for EMS PCMCIA card")
Link: https://lore.kernel.org/all/20211124145041.GB13656@kili
Cc: [email protected]
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Oliver Hartkopp <[email protected]>
Tested-by: Oliver Hartkopp <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions