Haiyang Zhang <haiya...@microsoft.com> writes:

>> -----Original Message-----
>> From: Haiyang Zhang <haiya...@linuxonhyperv.com>
>> Sent: Thursday, October 11, 2018 4:15 PM
>> To: da...@davemloft.net; net...@vger.kernel.org
>> Cc: Haiyang Zhang <haiya...@microsoft.com>; KY Srinivasan
>> <k...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com>;
>> o...@aepfle.de; vkuznets <vkuzn...@redhat.com>;
>> de...@linuxdriverproject.org; linux-ker...@vger.kernel.org
>> Subject: [PATCH net-next] hv_netvsc: fix vf serial matching with pci slot 
>> info
>> 
>> From: Haiyang Zhang <haiya...@microsoft.com>
>> 
>> The VF device's serial number is saved as a string in PCI slot's kobj name, 
>> not
>> the slot->number. This patch corrects the netvsc driver, so the VF device 
>> can be
>> successfully paired with synthetic NIC.
>> 
>> Fixes: 00d7ddba1143 ("hv_netvsc: pair VF based on serial number")
>> Signed-off-by: Haiyang Zhang <haiya...@microsoft.com>
>
> Thanks Stephen for the reminder -- I added the "reported-by" here:
>
> Reported-by: Vitaly Kuznetsov <vkuzn...@redhat.com>

Thanks) 

The difference in the hack I sent to Stephen was that instead of using
kstrtou32() and checking the return value I opted for snprintf() and
doing strncmp().

-- 
Vitaly
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to