From: Martin Kepplinger Date: Tue, 24 Mar 2015 01:21:20 +0000 (+1030) Subject: lguest: explicitly set miscdevice's private_data NULL X-Git-Tag: omap-for-v4.1/fixes-rc1~53^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67c50bf292c1c02ec7ca548049c53cc08dc75ed1;p=pandora-kernel.git lguest: explicitly set miscdevice's private_data NULL There is a proposed change to the miscdevice's behaviour on open(). Currently file->private_data stays NULL, but only because we don't have an open-entry in struct file_operations. This may change so that private_data, more consistently, is always set to struct miscdevice, not only *if* the driver has it's own open() routine and fops-entry, see https://lkml.org/lkml/2014/12/4/939 and commit 94e4fe2cab3d43b3ba7c3f721743006a8c9d913a In short: If we rely on file->private_data being NULL, we should ensure it is NULL ourselves. Signed-off-by: Martin Kepplinger Signed-off-by: Rusty Russell --- Reading git-diff-tree failed