[PATCH 5/5] gpiolib: gpioinfo: add optional CONTROLLER command line argument

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Wed Sep 28 06:22:46 PDT 2022


Ahmad Fatoum <a.fatoum at pengutronix.de> writes:

>  static int do_gpiolib(int argc, char *argv[])
>  {
> +	if (argc == 1) {
> +		dev = find_device(argv[1]);

'gpioinfo' without arguments will crash because this calls
'find_device(NULL)'

| :/ gpioinfo 
| BUG: failure at lib/string.c:226/strcmp()!
| BUG!



Enrico



More information about the barebox mailing list