Message ID | 20240320210350.101941-2-silviu.barbulescu@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Commit | bbf198280e701580cf2284800d56811bae71b80a |
Headers | show |
Series | Fix crash in iov_append_ltv function | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | success | Gitlint PASS |
tedd_an/BuildEll | success | Build ELL PASS |
tedd_an/BluezMake | success | Bluez Make PASS |
tedd_an/MakeCheck | success | Bluez Make Check PASS |
tedd_an/MakeDistcheck | success | Make Distcheck PASS |
tedd_an/CheckValgrind | success | Check Valgrind PASS |
tedd_an/CheckSmatch | success | CheckSparse PASS |
tedd_an/bluezmakeextell | success | Make External ELL PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
tedd_an/ScanBuild | success | Scan Build PASS |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=836840 ---Test result--- Test Summary: CheckPatch PASS 0.56 seconds GitLint PASS 0.40 seconds BuildEll PASS 24.46 seconds BluezMake PASS 1649.90 seconds MakeCheck PASS 13.13 seconds MakeDistcheck PASS 176.79 seconds CheckValgrind PASS 246.92 seconds CheckSmatch PASS 349.41 seconds bluezmakeextell PASS 119.45 seconds IncrementalBuild PASS 1431.16 seconds ScanBuild PASS 1008.29 seconds --- Regards, Linux Bluetooth
diff --git a/client/player.c b/client/player.c index ab33bfc46..d3ff15adb 100644 --- a/client/player.c +++ b/client/player.c @@ -3553,22 +3553,6 @@ done: endpoint_set_config(cfg); } -static struct iovec *iov_append_ltv(struct iovec **iov, uint8_t l, - uint8_t t, void *v) -{ - if (!*iov) - *iov = new0(struct iovec, 1); - - if (!((*iov)->iov_base)) - (*iov)->iov_base = new0(uint8_t, l + 1); - - util_iov_push_u8(*iov, l); - util_iov_push_u8(*iov, t); - util_iov_push_mem(*iov, l - 1, v); - - return *iov; -} - static void config_endpoint_channel_location(const char *input, void *user_data) { struct endpoint_config *cfg = user_data; @@ -3587,7 +3571,7 @@ static void config_endpoint_channel_location(const char *input, void *user_data) /* Add Channel Allocation LTV in capabilities */ location = cpu_to_le32(location); - iov_append_ltv(&cfg->caps, LC3_CONFIG_CHAN_ALLOC_LEN, + util_ltv_push(cfg->caps, LC3_CONFIG_CHAN_ALLOC_LEN - 1, LC3_CONFIG_CHAN_ALLOC, &location); add_meta: