sonyupdneo: Make sure we don't have any nulls in the IEEE1284 dictionary

This commit is contained in:
Solomon Peachy 2024-04-22 20:46:36 -04:00
parent 484c53fa1a
commit 20c64ce711
1 changed files with 3 additions and 1 deletions

View File

@ -415,6 +415,8 @@ static int updneo_get_status(struct updneo_ctx *ctx)
/* Parse out data */
for (i = 0; i < dlen ; i++) {
if(!dict[i].key || !dict[i].val)
continue;
if (!strcmp("SCDIV", dict[i].key)) {
ctx->sts.scdiv = strtol(dict[i].val, NULL, 16);
} else if (!strcmp("SCSYV", dict[i].key)) {
@ -710,7 +712,7 @@ static const struct device_id sonyupdneo_devices[] = {
const struct dyesub_backend sonyupdneo_backend = {
.name = "Sony UP-D Neo",
.version = "0.19",
.version = "0.20",
.flags = BACKEND_FLAG_BADISERIAL, /* UP-D898MD at least */
.uri_prefixes = sonyupdneo_prefixes,
.devices = sonyupdneo_devices,