[ Upstream commit 104bb8a663451404a26331263ce5b96c34504049 ]
when kmalloc() fail to allocate memory in kasprintf(), propname
will be NULL, strcmp() called by of_get_property() will cause
null pointer dereference.
So return ENOMEM if kasprintf() return NULL pointer.
Fixes:
|
||
|---|---|---|
| .. | ||
| reset | ||
| supply | ||
| Kconfig | ||
| Makefile | ||