Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
accel-config: Fix a bug with empty wq driver name
Some sysfs string attributes contain a newline character even if empty. In some cases there are even more than one. Driver name when empty contained the newline character leading to forming an invalid driver bind path. Another error was the check for an empty driver_name was assuming the driver_name field would be NULL if empty. Trim sysfs string attributes after any newline character. At wq enable, check for empty driver_name string before creating driver bind path. Signed-off-by: Ramesh Thomas <[email protected]>
- Loading branch information