]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: u_ether: Fix a configfs return code
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Feb 2021 15:57:16 +0000 (15:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:36:12 +0000 (09:36 +0100)
commit0ad809d557278d71558d21da255b9f09c419cf1c
tree29f36892fc0fc2fbdfdc215659a3d2228b0e7c95
parentbcd061ec222ae155a7cde3e4aab0bb4326d01a20
USB: gadget: u_ether: Fix a configfs return code

If the string is invalid, this should return -EINVAL instead of 0.

Fixes: cc34c7577557 ("usb: gadget: add RNDIS configfs options for class/subclass/protocol")
Cc: stable <stable@vger.kernel.org>
Acked-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YCqZ3P53yyIg5cn7@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/u_ether_configfs.h