Repository navigation
Commit cafd472
Bluetooth: Fix memory leak in read_adv_mon_features()
read_adv_mon_features() is leaking memory. Free `rp` before returning.
Fixes: e5e1e7f ("Bluetooth: Add handler of MGMT_OP_READ_ADV_MONITOR_FEATURES")
Reported-and-tested-by: syzbot+f7f6e564f4202d8601c6@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?extid=f7f6e564f4202d8601c6
Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>1 parent 2041a3f commit cafd472
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4157 | 4157 | | |
4158 | 4158 | | |
4159 | 4159 | | |
4160 | | - | |
| 4160 | + | |
4161 | 4161 | | |
4162 | 4162 | | |
4163 | 4163 | | |
| |||
4192 | 4192 | | |
4193 | 4193 | | |
4194 | 4194 | | |
4195 | | - | |
4196 | | - | |
4197 | | - | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
4198 | 4202 | | |
4199 | 4203 | | |
4200 | 4204 | | |
| |||
0 commit comments