USB: change dev_WARN to dev_err triggerable from user space
Quoted 8 lines · Johan Hovold
Quoted 2 lines · Oliver Neukum
For those people who run with
panic_on_warnaWARN()triggered from user space is a DOS. It is worth returning todev_err()I think this should be
dev_warn()unless you want to bring back the returning of errors on these conditions as well (i.e. as was the case prior to0cb54a3e47cb("USB: debugging code shouldn't alter control flow")).
Should I? A warning in syslog is pretty hardcore, so I have no idea whether dev_warn() is enough.
Regards
Oliver