aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorJonathan Lemon <[email protected]>2022-05-17 14:46:00 -0700
committerJakub Kicinski <[email protected]>2022-05-18 21:44:37 -0700
commitc2239294188fdbc3c58784a08d90edacd177bf9a (patch)
tree5a13c0f1f20a112efe36a73d0295e53974027f6c /lib/test_fortify/write_overflow-strlcpy-src.c
parent090f9dd092c6c2e9e4b9d0472b8d8628e4b851cb (diff)
ptp: ocp: change sysfs attr group handling
In the detach path, the driver calls sysfs_remove_group() for the groups it believes has been registered. However, if the group was never previously registered, then this causes a splat. Instead, compute the groups that should be registered in advance, and then call sysfs_create_groups(), which registers them all at once. Update the error handling appropriately. Fixes: c205d53c4923 ("ptp: ocp: Add firmware capability bits for feature gating") Reported-by: Zheyu Ma <[email protected]> Signed-off-by: Jonathan Lemon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions