Re: [PATCH] keys: correctly check failed allocation for kmemdup

From: David Howells
Date: Thu Oct 15 2015 - 14:57:46 EST


Insu Yun <wuninsu@xxxxxxxxx> wrote:

> kmemdup return value is saved in 'key->index_key.description', not
> 'key->descrption' and kmemdup can be failed in memory pressure.
> Therefore, key->index_key.description should be checked.

The fields are unioned. It makes no difference.

David
--
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/