caif: Ldisc add permission check and mem-alloc error check
authorSjur Braendeland <sjur.brandeland@stericsson.com>
Wed, 28 Apr 2010 08:54:34 +0000 (08:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Apr 2010 19:55:10 +0000 (12:55 -0700)
commitd3f744e0d6c1c27a10cdceac6eb946122188dbc9
tree29ea75a920eba781d617c4e1ef30298952a73d27
parenta4900ac9f7d10ad062e54dd03125e3619e0ac17a
caif: Ldisc add permission check and mem-alloc error check

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>
drivers/net/caif/caif_serial.c