kingst-la2016: handle sdi==NULL in config_list master
authorMike Walters <mike@flomp.net>
Sun, 14 Nov 2021 22:03:01 +0000 (22:03 +0000)
committerSoeren Apel <soeren@apelpie.net>
Sun, 14 Nov 2021 22:53:22 +0000 (23:53 +0100)
commitfb28e72dfdea0d985e03795f1f058aa4621e7e55
tree9ca946a97bbe9f4b4975cc1d930a96e05c168c26
parente972674d0b30b98dcc354b707a80b6bfc1aeb532
kingst-la2016: handle sdi==NULL in config_list

The hardware driver API specifies that the sdi argument to config_list
is optional and can be NULL. This change handles that case, instead of
dereferencing without a check.
src/hardware/kingst-la2016/api.c