title: memory: renesas-rpc-if: fix possible NULL pointer dereference of resource
description: In the Linux kernel, the following vulnerability has been resolved:
memory: renesas-rpc-if: fix possible NULL pointer dereference of resource
The platform_get_resource_byname() can return NULL which would be
immediately dereferenced by resource_size().  Instead dereference it
after validating the resource.
Addresses-Coverity: Dereference null return value
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: ca7d8b980b67, lessThan: 71bcc1b4a174, status: affected, versionType: git
version: ca7d8b980b67, lessThan: e16acc3a37f0, status: affected, versionType: git
version: ca7d8b980b67, lessThan: a74cb41af7db, status: affected, versionType: git
version: ca7d8b980b67, lessThan: 59e27d7c94aa, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 5.9, status: affected
version: 0, lessThan: 5.9, status: unaffected, versionType: custom
version: 5.10.37, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.11.21, lessThanOrEqual: 5.11.*, status: unaffected, versionType: custom
version: 5.12.4, lessThanOrEqual: 5.12.*, status: unaffected, versionType: custom
version: 5.13, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
