[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] sending data while client


After connection
I am issuing a send 100 2 from client. there will be the following error

kernel: BLUETOOTH: bt_write_top 100 bytes on line 0 (from_user : 1)
kernel: Unable to handle kernel NULL pointer dereference at virtual
address 00000000
kernel: current->tss.cr3 = 00e0a000, %cr3 = 00e0a000
kernel: *pde = 00000000

Which is during
  if (from_user) {
    copy_from_user(tmp_bt_buf, buf, count);
    bytes_sent=rfcomm_send_data((unsigned char*)tmp_bt_buf, count, line,

in the function bt_write_top.
tmp_bt_buf seem to only be allocated during insmod (init_module)?
but it is deallocated in bt_shutdown which is called from bt_init_stack.

Stefan Thomasson