Re: [PATCH] efivars: prevent Oops if efi_enabled but no EFI runtime

From: H. Peter Anvin
Date: Mon Jun 18 2012 - 16:23:00 EST


On 06/17/2012 04:00 PM, Olof Johansson wrote:
>
> I think it would make more sense to return -ENODEV when the function
> pointers aren't set, that way the exit function won't ever be called
> either, so no need to add the checks there.
>

-ENIXO? ENODEV is usually some form of "wrong type of device"; ENXIO is
"device is not there."

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/