[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <871f2181-6356-8bfd-47cb-0872d70b2cd9@datenfreihafen.org>
Date: Mon, 10 Jan 2022 09:57:01 +0100
From: Stefan Schmidt <stefan@...enfreihafen.org>
To: Pavel Skripkin <paskripkin@...il.com>, alex.aring@...il.com,
davem@...emloft.net, kuba@...nel.org
Cc: linux-wpan@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next v2] ieee802154: atusb: move to new USB API
Hello.
On 08.01.22 14:18, Pavel Skripkin wrote:
> Old USB API is prone to uninit value bugs if error handling is not
> correct. Let's move atusb to use new USB API to
>
> 1) Make code more simple, since new API does not require memory
> to be allocates via kmalloc()
>
> 2) Defend driver from usb-related uninit value bugs.
>
> 3) Make code more modern and simple
>
> This patch removes atusb usb wrappers as Greg suggested [0], this will make
> code more obvious and easier to understand over time, and replaces old
> API calls with new ones.
>
> Also this patch adds and updates usb related error handling to prevent
> possible uninit value bugs in future
>
> Link: https://lore.kernel.org/all/YdL0GPxy4TdGDzOO@kroah.com/ [0]
> Signed-off-by: Pavel Skripkin <paskripkin@...il.com>
> ---
>
> Changes in v2:
> - Fixed logic bug in atusb_get_and_conf_chip()
> - Renamed rc variable to reg in atusb_read_subreg()
>
> ---
> drivers/net/ieee802154/atusb.c | 186 ++++++++++++---------------------
> 1 file changed, 67 insertions(+), 119 deletions(-)
This patch has been applied to the wpan-next tree and will be
part of the next pull request to net-next. Thanks!
regards
Stefan Schmidt
Powered by blists - more mailing lists