Skip to content
Commit 46d2398c authored by Subramanian Mohan's avatar Subramanian Mohan Committed by Bjorn Helgaas
Browse files

PCI: vmd: Use devm_kasprintf() instead of simple kasprintf()



Use devm_kasprintf() instead of simple kasprintf() to free allocated memory
automatically when the device is freed.

Suggested-by: default avatarSrikanth Thokala <srikanth.thokala@intel.com>
Link: https://lore.kernel.org/r/20220531132617.20517-1-subramanian.mohan@intel.com


Signed-off-by: default avatarSubramanian Mohan <subramanian.mohan@intel.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarNirmal Patel <nirmal.patel@linux.intel.com>
parent f2906aa8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment