diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-21 17:48:10 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-24 11:36:02 +0300 |
| commit | 85aa1342d7a554256611c8e8133bfa5208ffb823 (patch) | |
| tree | 03534fd3e7a6e0e479c97ba85a064b862fd68c15 /include/linux/workqueue_api.h | |
| parent | c3b8c358c4f36faf610b76d546eb36178bb11b83 (diff) | |
| download | linux-85aa1342d7a554256611c8e8133bfa5208ffb823.tar.xz | |
misc: c2port: Calculate bin_attribute size through group callback
Modifying the size of the global bin_attribute instance can be racy.
Instead use the new .bin_size callback to do so safely.
For this to work move the initialization of c2dev->ops before the call
to device_create() as the size callback will need access to it.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241221-sysfs-const-bin_attr-misc-drivers-v2-4-ba5e79fe8771@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
