https://github.com/torvalds/linux
Revision d37e44969e60dc652fdbaf4397d5436e07c967af authored by Linus Torvalds on 24 August 2012, 04:45:54 UTC, committed by Linus Torvalds on 24 August 2012, 04:45:54 UTC
Pull HID fix from Jiri Kosina:
 "Fix for one particular device not being properly claimed by
  hid-multitouch driver"

* 'upstream-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
  HID: Remove QUANTA from special drivers list
2 parent s fea7a08 + 53c8498
Raw File
Tip revision: d37e44969e60dc652fdbaf4397d5436e07c967af authored by Linus Torvalds on 24 August 2012, 04:45:54 UTC
Merge branch 'upstream-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
Tip revision: d37e449
nonet.c
/*
 * net/nonet.c
 *
 * Dummy functions to allow us to configure network support entirely
 * out of the kernel.
 *
 * Distributed under the terms of the GNU GPL version 2.
 * Copyright (c) Matthew Wilcox 2003
 */

#include <linux/module.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>

static int sock_no_open(struct inode *irrelevant, struct file *dontcare)
{
	return -ENXIO;
}

const struct file_operations bad_sock_fops = {
	.owner = THIS_MODULE,
	.open = sock_no_open,
	.llseek = noop_llseek,
};
back to top