aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/caif
Commit message (Collapse)AuthorAge
* caif: Ldisc add permission check and mem-alloc error checkSjur Braendeland2010-04-28
| | | | | | | | | | Changes: o Added permission checks for installing. CAP_SYS_ADMIN and CAP_SYS_TTY_CONFIG can install the ldisc. o Check if allocation of skb was successful. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* caif: tty's are kref objects so take a referenceAlan Cox2010-04-07
| | | | | | | I don't think this can be abused in this case but do things properly. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* caif: check write operationsAlan Cox2010-04-07
| | | | | | | | write is optional for a tty device. Check that we have a write op rather than calling NULL. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net-caif-driver: add CAIF serial driver (ldisc)Sjur Braendeland2010-03-30
Add CAIF Serial driver. This driver is implemented as a line discipline. caif_serial uses the following module parameters: ser_use_stx - specifies if STart of frame eXtension is in use. ser_loop - sets the interface in loopback mode. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>