Commit 2c3d694
drm/modes: Handle reflect_[xy] in the middle of the cmd line
The command line parser was looking for an "=" before the ","
separator.
If the command line had reflect_[xy] before another option
which took a parameter, it would find the "=" from the second
option and assume it was associated with the reflect option,
generally leading to a parsing failure.
Handle this case by looking for both "," and "=", and taking
the first instance.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>1 parent 8d376f1 commit 2c3d694
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2173 | 2173 | | |
2174 | 2174 | | |
2175 | 2175 | | |
| 2176 | + | |
2176 | 2177 | | |
2177 | 2178 | | |
2178 | | - | |
2179 | | - | |
2180 | | - | |
| 2179 | + | |
2181 | 2180 | | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
2182 | 2185 | | |
2183 | 2186 | | |
2184 | 2187 | | |
| |||
0 commit comments