Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4b49580 authored by David Vrabel's avatar David Vrabel
Browse files

uwb: fix oops in debug PAL's reservation callback



Initialize pal_priv for reservations created by the debug PAL.

Signed-off-by: default avatarDavid Vrabel <david.vrabel@csr.com>
parent 5a4e1a79
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -122,7 +122,7 @@ static int cmd_rsv_establish(struct uwb_rc *rc,
	if (target == NULL)
	if (target == NULL)
		return -ENODEV;
		return -ENODEV;


	rsv = uwb_rsv_create(rc, uwb_dbg_rsv_cb, NULL);
	rsv = uwb_rsv_create(rc, uwb_dbg_rsv_cb, rc->dbg);
	if (rsv == NULL) {
	if (rsv == NULL) {
		uwb_dev_put(target);
		uwb_dev_put(target);
		return -ENOMEM;
		return -ENOMEM;