aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2023-05-15 16:43:47 +0900
committerBjorn Helgaas <[email protected]>2023-06-23 15:04:36 -0500
commitb6a6e0331fad61e38316a00e14ef6381d9f03161 (patch)
tree80b168f0da837df2ab7a0dfbcbdface36bfa23bd /lib/test_fortify/write_overflow-memcpy.c
parent880d51c729a3fa944794feb19f605eefe55916fc (diff)
PCI: endpoint: Improve pci_epf_type_add_cfs()
pci_epf_type_add_cfs() should not be called with an unbound EPF device, that is, an epf device with epf->driver not set. For such case, replace the NULL return in pci_epf_type_add_cfs() with a clear ERR_PTR(-ENODEV) pointer error return. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Manivannan Sadhasivami <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions