RPMSG SDB Parsing of Buffer ID and Size fails in rpmsg_sdb_decode_rxbuf_string
I am getting a buffer ID parsing error every once in a while in the rpmsg_sdb_decode_rxbuf_string() function. It looks like the strsep fails to parse out the ID. This also is only happening on buffer ID 0. Here is the debug from the function.
What would cause strsep to truncate the string? Even when the passed in string is correct.
Before and after the error. Thanks for any help.
Apr 8 20:35:08.378 kernel(debug): rpmsg_sdb(rpmsg_sdb_decode_rxbuf_string): rxbuf_str:B00L00002000
Apr 8 20:35:08.378 kernel(debug): rpmsg_sdb(rpmsg_sdb_decode_rxbuf_string): sub_str:B00
Apr 8 20:35:08.478 kernel(debug): [265795.660533] rpmsg_sdb(rpmsg_sdb_decode_rxbuf_string): rxbuf_str:B00L00002000
Apr 8 20:35:08.478 kernel(debug): [265795.660553] rpmsg_sdb(rpmsg_sdb_decode_rxbuf_string): sub_str:B
Apr 8 20:35:08.588 kernel(err): [265795.660569] rpmsg_sdb(ERROR): Extract of buffer id failed(-22)
Apr 8 20:35:08.588 kernel(debug): [265795.760504] rpmsg_sdb(rpmsg_sdb_decode_rxbuf_string): rxbuf_str:B00L00002000
Apr 8 20:35:08.588 kernel(debug): [265795.765075] rpmsg_sdb(rpmsg_sdb_decode_rxbuf_string): sub_str:B00
