[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6fa3c18b3421d5dfc80c82ce29a49171c1841bf0.camel@sipsolutions.net>
Date: Thu, 28 Mar 2024 09:27:12 +0100
From: Johannes Berg <johannes@...solutions.net>
To: Duoming Zhou <duoming@....edu.cn>, linux-kernel@...r.kernel.org
Cc: linux-um@...ts.infradead.org, richard@....at,
anton.ivanov@...bridgegreys.com, axboe@...nel.dk, brauner@...nel.org,
hare@...e.de, jinpu.wang@...os.com
Subject: Re: [PATCH] um: Fix return value in ubd_init()
On Wed, 2024-03-06 at 17:12 +0800, Duoming Zhou wrote:
> When kmalloc_array() fails to allocate memory, the ubd_init()
> should return -ENOMEM instead of -1. So, fix it.
Not sure this really matters, but the code seems cleaner with it :)
Reviewed-by: Johannes Berg <johannes@...solutions.net>
johannes
Powered by blists - more mailing lists