Bug introduced in commit
7676b72 by Tobin C. Harding.
Remove equals sign from comparison, fixing off by one error.
Fixes: 7676b72428e8 ("staging: ks7010: move comparison to right hand side")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
if (ptr != &priv->pmklist.head) /* not find address. */
break; /* case */
- if (priv->pmklist.size <= PMK_LIST_MAX) { /* new cache data */
+ if (priv->pmklist.size < PMK_LIST_MAX) { /* new cache data */
for (i = 0; i < PMK_LIST_MAX; i++) {
pmk = &priv->pmklist.pmk[i];
if (!memcmp("\x00\x00\x00\x00\x00\x00",