Hi! Another problem which I found now:

On Tuesday 07 June 2016 10:33:47 Mario Limonciello wrote:
> +     ret = hex2bin(buf, obj->string.pointer + 9, 6);
> +     if (!(ret == 0 && is_valid_ether_addr(buf))) {
> +             netif_warn(tp, probe, tp->netdev,
> +                        "Invalid MAC when reading pass-thru MAC addr: "
> +                        "%pM\n",
> +                        buf);
> +             goto amacout;
> +     }

In case when hex2bin returns zero, but is_valid_ether_addr returns
false, this function returns also zero. And thats wrong, because error
occur.

-- 
Pali Rohár
pali.ro...@gmail.com
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to