mirror of
https://github.com/torvalds/linux.git
synced 2026-10-04 02:09:03 +02:00
The UAC1_STR_ATTRIBUTE macro defines configfs show/store handlers for
the fn_play, fn_cap, and fn_cntl string options. The store function
contains an inverted null check on the kstrndup() return value.
This means every write attempt returns -ENOMEM on success and
dereferences a NULL pointer on allocation failure. The attributes
have been broken and unused for many years.
Remove the UAC1_STR_ATTRIBUTE macro and the three attributes it
generated. The internal defaults (FILE_PCM_PLAYBACK, FILE_PCM_CAPTURE,
FILE_CONTROL) set in f_audio_alloc_inst() are unaffected.
Fixes:
|
||
|---|---|---|
| .. | ||
| acm.rst | ||
| authorization.rst | ||
| chipidea.rst | ||
| CREDITS | ||
| dwc3.rst | ||
| ehci.rst | ||
| functionfs-desc.rst | ||
| functionfs.rst | ||
| gadget_configfs.rst | ||
| gadget_hid.rst | ||
| gadget_multi.rst | ||
| gadget_printer.rst | ||
| gadget_serial.rst | ||
| gadget_uvc.rst | ||
| gadget-testing.rst | ||
| index.rst | ||
| iuu_phoenix.rst | ||
| linux-cdc-acm.inf | ||
| linux.inf | ||
| mass-storage.rst | ||
| misc_usbsevseg.rst | ||
| mtouchusb.rst | ||
| ohci.rst | ||
| raw-gadget.rst | ||
| text_files.rst | ||
| usb-help.rst | ||
| usb-serial.rst | ||
| usbdevfs-drop-permissions.c | ||
| usbip_protocol.rst | ||
| usbmon.rst | ||