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

Johannes Berg johannes at sipsolutions.net
Thu Mar 28 01:27:12 PDT 2024


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 at sipsolutions.net>

johannes




More information about the linux-um mailing list