Hi, While experimenting with a CodeSonar plugin we develop, we noticed a potential bug in file "drivers/ata/libata-core.c" line 6803: force_ent->port = simple_strtoul(id, &endp, 10); if (p == endp || *endp != '\0') { In the first check of the if statement, shouldn't the "id" variable be checked (instead of "p")? As can be observed, the proper conversion of "id" should be verified.
Indeed. Care to submit a patch?
No, thanks for asking :). You can fix it directly. Thanks again.