Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALSA: info: Return error for invalid read/write
Currently the ALSA proc handler allows read or write even if the proc file were write-only or read-only. It's mostly harmless, does thing but allocating memory and ignores the input/output. But it doesn't tell user about the invalid use, and it's confusing and inconsistent in comparison with other proc files. This patch adds some sanity checks and let the proc handler returning an -EIO error when the invalid read/write is performed. Cc: <[email protected]> # v4.2+ Signed-off-by: Takashi Iwai <[email protected]>
- Loading branch information