Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a06a568d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wil6210: add verification for cid upper bound"

parents b5bfac9c 62b5e280
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -473,7 +473,7 @@ static inline void parse_cidxtid(u8 cidxtid, u8 *cid, u8 *tid)
 */
static inline bool wil_cid_valid(int cid)
{
	return (cid >= 0 && cid < max_assoc_sta);
	return (cid >= 0 && cid < max_assoc_sta && cid < WIL6210_MAX_CID);
}

struct wil6210_mbox_ring {