Commit e4b49580f70380a4216ff8220c8f48a95e21c238

Authored by David Vrabel
1 parent 5a4e1a795d

uwb: fix oops in debug PAL's reservation callback

Initialize pal_priv for reservations created by the debug PAL.

Signed-off-by: David Vrabel <david.vrabel@csr.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/uwb/uwb-debug.c
... ... @@ -122,7 +122,7 @@
122 122 if (target == NULL)
123 123 return -ENODEV;
124 124  
125   - rsv = uwb_rsv_create(rc, uwb_dbg_rsv_cb, NULL);
  125 + rsv = uwb_rsv_create(rc, uwb_dbg_rsv_cb, rc->dbg);
126 126 if (rsv == NULL) {
127 127 uwb_dev_put(target);
128 128 return -ENOMEM;