Florian Fainelli 495ff36388 firmware_loader: Strip off \n from customized path
Having helped an user recently figure out why the customized path being
specified was not taken into account landed on a subtle difference
between using:

echo "/xyz/firmware" > /sys/module/firmware_class/parameters/path

which inserts an additional newline which is passed as is down to
fw_get_filesystem_firmware() and ultimately kernel_read_file_from_path()
and fails.

Strip off \n from the customized firmware path such that users do not
run into these hard to debug situations.

Link: https://lore.kernel.org/all/20230402135423.3235-1-f.fainelli@gmail.com/
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230413191757.1949088-1-f.fainelli@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-20 11:42:27 +02:00
..
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-02-25 09:19:23 -08:00
2023-02-24 12:58:55 -08:00
2023-03-24 15:38:13 -07:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-02-24 12:58:55 -08:00
2023-02-24 12:58:55 -08:00
2023-04-03 09:33:30 +02:00
2023-02-28 16:05:01 -08:00
2023-02-21 12:13:58 -08:00
2023-04-01 14:09:51 -07:00
2023-04-03 09:33:30 +02:00
2023-02-24 12:58:55 -08:00
2023-03-31 12:35:03 -07:00
2023-04-03 09:33:30 +02:00
2023-02-27 09:47:26 -08:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-02-24 13:40:13 -08:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-03-27 01:42:01 +01:00
2023-02-27 10:04:49 -08:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-02-24 17:29:52 -08:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-04-03 09:33:30 +02:00
2023-02-25 11:48:02 -08:00
2023-03-17 10:45:49 -07:00
2023-02-26 11:53:25 -08:00