>> + if (ioc->buf != NULL) >> + buflen = min_t(int, ioc->len, BRCMF_IOCTL_MAXLEN); > ^^^^ > Should be uint here. You are right. Greg, please drop [14/17], I will post a v2 patch. Thanks, Roland.