diff options
author | 2013-06-14 10:16:06 +0100 | |
---|---|---|
committer | 2013-06-14 10:16:06 +0100 | |
commit | 384b8345589cbbb18a99ce1b112da90c58c802e8 (patch) | |
tree | 51fee39fa19adad6b24fb90123e7a0ca3159c9c5 /drivers/vfio/vfio.c | |
parent | ASoC: wm8962: Restore device state after reset in runtime resume (diff) | |
parent | ASoC: wm8962: Remove remaining direct register cache accesses (diff) | |
download | wireguard-linux-384b8345589cbbb18a99ce1b112da90c58c802e8.tar.xz wireguard-linux-384b8345589cbbb18a99ce1b112da90c58c802e8.zip |
Merge branch 'fix/wm8962' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-wm8962
Conflicts:
sound/soc/codecs/wm8962.c
Diffstat (limited to 'drivers/vfio/vfio.c')
-rw-r--r-- | drivers/vfio/vfio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/vfio.c b/drivers/vfio/vfio.c index acb7121a9316..6d78736563de 100644 --- a/drivers/vfio/vfio.c +++ b/drivers/vfio/vfio.c @@ -1360,7 +1360,7 @@ static const struct file_operations vfio_device_fops = { */ static char *vfio_devnode(struct device *dev, umode_t *mode) { - if (MINOR(dev->devt) == 0) + if (mode && (MINOR(dev->devt) == 0)) *mode = S_IRUGO | S_IWUGO; return kasprintf(GFP_KERNEL, "vfio/%s", dev_name(dev)); |