[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201002.153849.1212074263659708172.davem@davemloft.net>
Date: Fri, 02 Oct 2020 15:38:49 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: anant.thazhemadam@...il.com
Cc: linux-kernel-mentees@...ts.linuxfoundation.org,
syzbot+abbc768b560c84d92fd3@...kaller.appspotmail.com,
petkan@...leusys.com, kuba@...nel.org, linux-usb@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] net: usb: rtl8150: prevent set_ethernet_addr from
setting uninit address
From: Anant Thazhemadam <anant.thazhemadam@...il.com>
Date: Fri, 2 Oct 2020 17:04:13 +0530
> But this patch is about ensuring that an uninitialized variable's
> value (whatever that may be) is not set as the ethernet address
> blindly (without any form of checking if get_registers() worked
> as expected, or not).
Right, and if you are going to check for errors then you have to
handle the error properly.
And the proper way to handle this error is to set a random ethernet
address on the device.
Powered by blists - more mailing lists