Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
struct addBaReq_parm *paddbareq_parm;
u8 res = _SUCCESS;
+ if (tid >= MAXTID) {
+ res = _FAIL;
+ goto exit;
+ }
+
ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);
if (!ph2c) {
res = _FAIL;
mod_timer(&psta->addba_retry_timer,
jiffies + msecs_to_jiffies(ADDBA_TO));
} else {
- psta->htpriv.candidate_tid_bitmap &= ~CHKBIT(pparm->tid);
+ psta->htpriv.candidate_tid_bitmap &= ~BIT(pparm->tid);
}
return H2C_SUCCESS;
}