aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mul.c
diff options
context:
space:
mode:
authorSuman Anna <[email protected]>2020-04-16 19:20:36 -0500
committerBjorn Andersson <[email protected]>2020-04-20 19:33:09 -0700
commitdb65527836156fe9c6abe6b9b4aa02fac49a67e3 (patch)
treeac746d56b0c22dcb66fbe14062a4523267297cbf /lib/mpi/mpi-mul.c
parent226f5db4212438cdfe1a94652d74c6c01788a837 (diff)
remoteproc: Use a local copy for the name field
The current name field used in the remoteproc structure is simply a pointer to a name field supplied during the rproc_alloc() call. The pointer passed in by remoteproc drivers during registration is typically a dev_name pointer, but it is possible that the pointer will no longer remain valid if the devices themselves were created at runtime like in the case of of_platform_populate(), and were deleted upon any failures within the respective remoteproc driver probe function. So, allocate and maintain a local copy for this name field to keep it agnostic of the logic used in the remoteproc drivers. Reviewed-by: Mathieu Poirier <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Suman Anna <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions