Re: [PATCH] um: Fix return value in ubd_init()

From: Johannes Berg
Date: Thu Mar 28 2024 - 04:27:37 EST


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@xxxxxxxxxxxxxxxx>

johannes