]> git.baikalelectronics.ru Git - kernel.git/commit
caif: check write operations
authorAlan Cox <alan@linux.intel.com>
Wed, 7 Apr 2010 23:49:31 +0000 (16:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2010 23:49:31 +0000 (16:49 -0700)
commit7556e227bc09f6cfad7657b6431a0e6d4918226e
tree5e8471a9bcdbf63e170380163a987b51f82719d7
parent1363d601e0e28ea541f598b4d2fa28f3fde6028f
caif: check write operations

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