Revert "UPSTREAM: sdp: Fix Out-of-bounds heap read in service_search_attr_req function"

This reverts commit f23c82781f95b280f555b352492df23397df3fd6.

Reason for revert: master branch is no longer active, land this in chromeos-5.44 branch instead.

Original change's description:
> UPSTREAM: sdp: Fix Out-of-bounds heap read in service_search_attr_req function
> 
> Check if there is enough data to continue otherwise return an error.
> 
> BUG=chromium:764477
> TEST=Run bluetooth tests
> 
> (cherry picked from commit 9e009647b14e810e06626dde7f1bb9ea3c375d09)
> Signed-off-by: Guenter Roeck <groeck@chromium.org>
> 
> Change-Id: Ib9b49cb17d5964daad5c9b377744020f968c0521
> Reviewed-on: https://chromium-review.googlesource.com/664819
> Trybot-Ready: Guenter Roeck <groeck@chromium.org>
> Reviewed-by: Mattias Nissler <mnissler@chromium.org>
> Commit-Queue: Guenter Roeck <groeck@chromium.org>
> Tested-by: Guenter Roeck <groeck@chromium.org>

Bug: chromium:764477
Change-Id: If8fbbbdcd15dcb53aa47d5bb31d69bd734f873d2
Reviewed-on: https://chromium-review.googlesource.com/665359
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Commit-Queue: Miao-chen Chou <mcchou@chromium.org>
Tested-by: Miao-chen Chou <mcchou@chromium.org>
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index 318d044..1eefdce 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -917,7 +917,7 @@
 	} else {
 		/* continuation State exists -> get from cache */
 		sdp_buf_t *pCache = sdp_get_cached_rsp(cstate);
-		if (pCache && cstate->cStateValue.maxBytesSent < pCache->data_size) {
+		if (pCache) {
 			uint16_t sent = MIN(max, pCache->data_size - cstate->cStateValue.maxBytesSent);
 			pResponse = pCache->data;
 			memcpy(buf->data, pResponse + cstate->cStateValue.maxBytesSent, sent);