mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
12280cc708
The smatch warns about uncleaned resources in case the
parport_register_port() fails:
parport_register_port() warn: '&tmp->full_list' not removed from list
This is indeed an issue introduced when converting code to use
kasprintf(). However, the whole kasprintf() dance in this case
is not needed as dev_set_name() can handle the formatted input
and produces the same result. So, the solution is to delegate
name forming to the dev_set_name() and make device_register()
error path to deal with error handling (via put_device() call).
Fixes:
|
||
---|---|---|
.. | ||
BUGS-parport | ||
daisy.c | ||
ieee1284.c | ||
ieee1284_ops.c | ||
Kconfig | ||
Makefile | ||
multiface.h | ||
parport_amiga.c | ||
parport_atari.c | ||
parport_cs.c | ||
parport_gsc.c | ||
parport_gsc.h | ||
parport_ip32.c | ||
parport_mfc3.c | ||
parport_pc.c | ||
parport_serial.c | ||
parport_sunbpp.c | ||
probe.c | ||
procfs.c | ||
share.c | ||
TODO-parport |