[PATCH btbridge v4 6/8] Don't exit on short reads just ignore

OpenBMC Patches patches at stwcx.xyz
Fri Oct 30 23:42:12 AEDT 2015


From: Cyril Bur <cyril.bur at au1.ibm.com>

---
 btbridged.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/btbridged.c b/btbridged.c
index c829c46..d490c59 100644
--- a/btbridged.c
+++ b/btbridged.c
@@ -482,8 +482,8 @@ static int dispatch_bt(struct btbridged_context *context)
 			goto out1;
 		}
 		if (r < data[0] + 1) {
-			MSG_ERR("Short read from bt (%d)\n", r);
-			r = -EINVAL;
+			MSG_ERR("Short read from bt (%d vs %d)\n", r, data[0] + 1);
+			r = 0;
 			goto out1;
 		}
 
-- 
2.6.0




More information about the openbmc mailing list