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

Commit 57bf7440 authored by John W. Linville's avatar John W. Linville
Browse files
parents 075163bb 3f6fa3d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4333,7 +4333,7 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn,
	struct l2cap_info_rsp *rsp = (struct l2cap_info_rsp *) data;
	u16 type, result;

	if (cmd_len != sizeof(*rsp))
	if (cmd_len < sizeof(*rsp))
		return -EPROTO;

	type   = __le16_to_cpu(rsp->type);