| .. | .. |
|---|
| 192 | 192 | if (!nu) |
|---|
| 193 | 193 | return; |
|---|
| 194 | 194 | |
|---|
| 195 | | - if (nu->tx_skb) |
|---|
| 196 | | - kfree_skb(nu->tx_skb); |
|---|
| 197 | | - if (nu->rx_skb) |
|---|
| 198 | | - kfree_skb(nu->rx_skb); |
|---|
| 195 | + kfree_skb(nu->tx_skb); |
|---|
| 196 | + kfree_skb(nu->rx_skb); |
|---|
| 199 | 197 | |
|---|
| 200 | 198 | skb_queue_purge(&nu->tx_q); |
|---|
| 201 | 199 | |
|---|
| .. | .. |
|---|
| 294 | 292 | |
|---|
| 295 | 293 | /* We don't provide read/write/poll interface for user space. */ |
|---|
| 296 | 294 | static ssize_t nci_uart_tty_read(struct tty_struct *tty, struct file *file, |
|---|
| 297 | | - unsigned char __user *buf, size_t nr) |
|---|
| 295 | + unsigned char *buf, size_t nr, |
|---|
| 296 | + void **cookie, unsigned long offset) |
|---|
| 298 | 297 | { |
|---|
| 299 | 298 | return 0; |
|---|
| 300 | 299 | } |
|---|
| .. | .. |
|---|
| 465 | 464 | .receive_buf = nci_uart_tty_receive, |
|---|
| 466 | 465 | .write_wakeup = nci_uart_tty_wakeup, |
|---|
| 467 | 466 | .ioctl = nci_uart_tty_ioctl, |
|---|
| 467 | + .compat_ioctl = nci_uart_tty_ioctl, |
|---|
| 468 | 468 | }; |
|---|
| 469 | 469 | |
|---|
| 470 | 470 | static int __init nci_uart_init(void) |
|---|