]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: check for null in device_write
authorMasatake YAMATO <yamato@redhat.com>
Wed, 28 May 2008 05:45:10 +0000 (14:45 +0900)
committerDavid Teigland <teigland@redhat.com>
Mon, 14 Jul 2008 18:56:59 +0000 (13:56 -0500)
commit1565ea6531c4011b423ac6d0039b1b86304f6fe0
tree2a68101ba1c053d167a3f5effed6c33ab1043972
parenta8ce60675837da159d23e1758f210feb604dcfb7
dlm: check for null in device_write

If `device_write' method is called via "dlm-control",
file->private_data is NULL. (See ctl_device_open() in
user.c. ) Through proc->flags is read.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/user.c