Marco Trevisan (Treviño)
355cae1bbd
fp-device: Return error if trying to list a storage-less device
...
Devices with no storage don't allow listing prints, and if we try to do
that, we'd end up in trying to call a NULL function pointer, causing a crash
So always check if the device has storage before calling the list vfunc, and
if we fail, return an error.
Include an unit-test to verify this situation
2020-02-10 11:41:40 +01:00
..
2020-02-10 11:41:40 +01:00
2020-02-10 11:41:40 +01:00
2020-02-10 11:40:40 +01:00
2018-05-24 12:23:39 +02:00
2020-02-10 11:41:37 +01:00
2019-11-20 11:03:09 +01:00
2020-01-13 14:37:39 +01:00
2020-02-10 11:41:40 +01:00
2020-01-16 20:24:42 +01:00
2019-12-17 14:38:19 +01:00
2020-01-08 18:14:06 +01:00
2019-11-20 11:03:09 +01:00
2019-12-11 20:07:13 +01:00
2019-11-20 11:03:09 +01:00
2019-12-17 14:38:19 +01:00
2020-02-10 11:41:40 +01:00
2019-12-19 14:20:00 +01:00
2020-01-02 13:46:46 +01:00
2019-12-17 14:38:19 +01:00
2019-11-20 13:53:45 +01:00
2019-12-17 14:38:19 +01:00
2019-12-17 14:38:19 +01:00
2019-11-20 13:53:45 +01:00
2019-12-17 14:38:19 +01:00
2020-02-10 11:41:40 +01:00
2020-02-10 11:40:40 +01:00
2020-01-17 19:03:33 +01:00
2020-01-13 14:37:39 +01:00
2020-01-15 14:57:51 +01:00
2019-12-17 14:38:19 +01:00
2019-12-11 20:07:13 +01:00
2019-11-20 11:03:09 +01:00
2019-12-17 14:38:19 +01:00
2019-12-04 18:50:46 +01:00
2019-12-18 12:25:06 +01:00
2019-12-17 14:38:19 +01:00
2019-12-14 17:20:47 +01:00
2019-12-17 14:38:19 +01:00
2019-12-04 18:52:19 +01:00
2019-12-17 14:38:19 +01:00
2020-02-10 11:41:37 +01:00
2020-02-10 11:41:37 +01:00
2019-11-20 20:38:06 +01:00
2019-12-12 19:03:57 +01:00
2020-02-10 11:41:40 +01:00