1. freebsd/sys/dev/aacraid/aacraid.c:2854]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses. if ((error = copyin((void *)&user_srb->data_len, &fibsize, sizeof (u_int32_t)) != 0)) goto out; Maybe better code if ((error = copyin((void *)&user_srb->data_len, &fibsize, sizeof (u_int32_t))) != 0) goto out; 2. freebsd/sys/dev/aacraid/aacraid.c:2861]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses. if ((error = copyin((void *)user_srb, srbcmd, fibsize) != 0)) Maybe better code if ((error = copyin((void *)user_srb, srbcmd, fibsize)) != 0)
We will review and incorporate the suggested code changes.
(In reply to Prasad B M from comment #1) >We will review and incorporate the suggested code changes. A couple of years has rolled by and the bug still exists. Tick tock.
(In reply to David Binderman from comment #2) This Changes were done and committed as part of other code changes. below is the Bugzilla link for that message. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209468
I did a git clone yesterday and the bug still exists. Have you actually checked that today's code has the bug or not ?