Linux 3.2.84
I'm announcing the release of the 3.2.84 kernel.
All users of the 3.2 kernel series should upgrade.
The updated 3.2.y git tree can be found at:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git
The diff from 3.2.83 is attached to this message.
Ben.
------------
Documentation/filesystems/porting | 4 +- Makefile | 2 +- arch/alpha/include/asm/uaccess.h | 19 ++--- arch/arm/common/sa1111.c | 22 +++-- arch/arm/kernel/sys_oabi-compat.c | 8 +- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 12 +++ arch/avr32/include/asm/uaccess.h | 11 ++- arch/avr32/kernel/avr32_ksyms.c | 2 +- arch/avr32/lib/copy_user.S | 8 +- arch/avr32/mach-at32ap/pio.c | 2 +- arch/blackfin/include/asm/uaccess.h | 9 +- arch/cris/include/asm/uaccess.h | 71 +++++++--------- arch/frv/include/asm/uaccess.h | 12 ++- arch/hexagon/include/asm/uaccess.h | 3 +- arch/ia64/include/asm/uaccess.h | 20 ++--- arch/m32r/include/asm/uaccess.h | 2 +- arch/microblaze/include/asm/uaccess.h | 11 ++- arch/mips/kernel/scall64-n32.S | 2 +- arch/mips/kernel/scall64-o32.S | 2 +- arch/mips/mm/sc-rm7k.c | 2 +- arch/mn10300/include/asm/uaccess.h | 1 + arch/mn10300/lib/usercopy.c | 5 +- arch/openrisc/include/asm/uaccess.h | 35 +++----- arch/parisc/include/asm/errno.h | 4 +- arch/parisc/include/asm/uaccess.h | 7 +- arch/powerpc/include/asm/uaccess.h | 21 +---- arch/powerpc/mm/numa.c | 18 +++- arch/s390/include/asm/auxvec.h | 2 + arch/s390/include/asm/elf.h | 1 + arch/s390/include/asm/uaccess.h | 8 +- arch/score/include/asm/uaccess.h | 46 +++++----- arch/sh/include/asm/uaccess.h | 5 +- arch/sh/include/asm/uaccess_64.h | 1 + arch/sparc/include/asm/uaccess_32.h | 4 +- arch/x86/ia32/ia32entry.S | 2 +- arch/x86/include/asm/tlbflush.h | 7 ++ arch/x86/kernel/apic/apic.c | 3 + arch/x86/kernel/early-quirks.c | 106 +++++++++++++++++++++--- arch/x86/kernel/paravirt.c | 4 +- arch/x86/kvm/vmx.c | 62 ++++++++++---- block/genhd.c | 1 + crypto/blkcipher.c | 3 +- crypto/cryptd.c | 9 +- crypto/gcm.c | 4 +- crypto/scatterwalk.c | 3 +- drivers/bcma/bcma_private.h | 2 - drivers/bluetooth/ath3k.c | 4 + drivers/bluetooth/btusb.c | 2 + drivers/char/tpm/tpm_tis.c | 9 +- drivers/firewire/net.c | 46 +++++++--- drivers/gpu/drm/drm_crtc.c | 3 + drivers/gpu/drm/drm_edid.c | 8 ++ drivers/gpu/drm/radeon/radeon_atombios.c | 4 +- drivers/gpu/drm/radeon/radeon_connectors.c | 15 ++-- drivers/gpu/drm/radeon/radeon_ttm.c | 4 +- drivers/hwmon/adt7411.c | 5 +- drivers/i2c/busses/i2c-eg20t.c | 18 ++-- drivers/infiniband/core/multicast.c | 13 +-- drivers/infiniband/ulp/ipoib/ipoib.h | 1 + drivers/infiniband/ulp/ipoib/ipoib_cm.c | 16 ++++ drivers/infiniband/ulp/ipoib/ipoib_ib.c | 9 ++ drivers/infiniband/ulp/ipoib/ipoib_main.c | 2 +- drivers/input/joystick/xpad.c | 3 + drivers/input/serio/i8042.c | 17 +--- drivers/input/serio/libps2.c | 10 +-- drivers/md/dm-flakey.c | 23 +++-- drivers/media/video/usbvision/usbvision-video.c | 7 -- drivers/mtd/maps/pmcmsp-flash.c | 6 +- drivers/mtd/nand/davinci_nand.c | 3 + drivers/mtd/nand/nand_base.c | 2 +- drivers/mtd/ubi/build.c | 5 +- drivers/net/can/dev.c | 27 +++--- drivers/net/ethernet/ethoc.c | 10 +-- drivers/net/ppp/ppp_generic.c | 5 +- drivers/net/wireless/brcm80211/brcmsmac/stf.c | 2 +- drivers/pps/clients/pps_parport.c | 2 +- drivers/s390/block/dasd.c | 10 ++- drivers/scsi/aacraid/commctrl.c | 13 ++- drivers/scsi/arcmsr/arcmsr_hba.c | 8 +- drivers/scsi/megaraid/megaraid_sas_base.c | 6 +- drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 +- drivers/staging/iio/accel/kxsd9.c | 2 + drivers/staging/pohmelfs/Kconfig | 1 + drivers/tty/serial/samsung.c | 4 +- drivers/tty/vt/keyboard.c | 30 ++----- drivers/usb/class/cdc-acm.c | 5 +- drivers/usb/class/cdc-acm.h | 1 - drivers/usb/core/config.c | 93 +++++++++++++++++---- drivers/usb/core/devio.c | 16 ++-- drivers/usb/gadget/fsl_qe_udc.c | 7 +- drivers/usb/host/xhci-hub.c | 3 + drivers/usb/host/xhci-pci.c | 3 +- drivers/usb/renesas_usbhs/fifo.c | 18 +++- drivers/usb/renesas_usbhs/mod_gadget.c | 9 +- drivers/usb/serial/ftdi_sio.c | 3 + drivers/usb/serial/ftdi_sio_ids.h | 12 +++ drivers/usb/serial/mos7720.c | 2 +- drivers/usb/serial/mos7840.c | 4 +- drivers/usb/serial/option.c | 13 +++ drivers/virtio/virtio_balloon.c | 2 + drivers/xen/xenfs/xenbus.c | 14 ++-- fs/9p/acl.c | 40 ++++----- fs/9p/vfs_inode.c | 2 +- fs/9p/vfs_inode_dotl.c | 2 +- fs/adfs/inode.c | 2 +- fs/affs/inode.c | 2 +- fs/attr.c | 35 +++++--- fs/btrfs/acl.c | 4 +- fs/btrfs/inode.c | 2 +- fs/btrfs/ioctl.c | 12 +++ fs/ceph/file.c | 13 ++- fs/ceph/inode.c | 2 +- fs/cifs/inode.c | 4 +- fs/ecryptfs/inode.c | 2 +- fs/exofs/inode.c | 2 +- fs/ext2/acl.c | 12 +-- fs/ext2/inode.c | 2 +- fs/ext3/acl.c | 12 +-- fs/ext3/inode.c | 6 +- fs/ext4/acl.c | 12 +-- fs/ext4/extents.c | 8 +- fs/ext4/inode.c | 8 +- fs/ext4/mballoc.c | 17 +--- fs/ext4/super.c | 35 +++++++- fs/fat/file.c | 2 +- fs/fuse/dir.c | 2 +- fs/generic_acl.c | 15 ++-- fs/gfs2/acl.c | 16 ++-- fs/gfs2/inode.c | 2 +- fs/hfs/inode.c | 2 +- fs/hfsplus/inode.c | 2 +- fs/hostfs/hostfs_kern.c | 9 +- fs/hpfs/inode.c | 2 +- fs/hugetlbfs/inode.c | 2 +- fs/jffs2/acl.c | 9 +- fs/jffs2/fs.c | 2 +- fs/jfs/file.c | 2 +- fs/jfs/xattr.c | 6 +- fs/libfs.c | 2 +- fs/logfs/file.c | 2 +- fs/minix/file.c | 2 +- fs/ncpfs/inode.c | 2 +- fs/nfs/callback_xdr.c | 6 +- fs/nfs/nfs4proc.c | 15 +++- fs/nfs/write.c | 5 +- fs/nfsd/vfs.c | 12 +-- fs/nilfs2/inode.c | 2 +- fs/ntfs/inode.c | 2 +- fs/ocfs2/acl.c | 9 +- fs/ocfs2/dlm/dlmconvert.c | 12 +-- fs/ocfs2/dlmfs/dlmfs.c | 2 +- fs/ocfs2/file.c | 36 +++++--- fs/omfs/file.c | 2 +- fs/posix_acl.c | 30 +++++++ fs/proc/base.c | 2 +- fs/proc/generic.c | 2 +- fs/proc/proc_sysctl.c | 2 +- fs/ramfs/file-nommu.c | 2 +- fs/reiserfs/inode.c | 2 +- fs/reiserfs/xattr_acl.c | 8 +- fs/seq_file.c | 4 +- fs/sysfs/inode.c | 2 +- fs/sysv/file.c | 2 +- fs/ubifs/file.c | 2 +- fs/ubifs/tnc_commit.c | 2 +- fs/udf/file.c | 2 +- fs/ufs/truncate.c | 2 +- fs/utimes.c | 4 +- fs/xfs/xfs_acl.c | 26 +++--- fs/xfs/xfs_file.c | 6 +- fs/xfs/xfs_ioctl.c | 3 +- fs/xfs/xfs_iops.c | 26 ++++-- fs/xfs/xfs_vnodeops.c | 5 +- fs/xfs/xfs_vnodeops.h | 7 +- include/asm-generic/uaccess.h | 20 +++-- include/linux/bcma/bcma.h | 1 + include/linux/bcma/bcma_regs.h | 1 + include/linux/can/dev.h | 3 +- include/linux/fs.h | 2 +- include/linux/i8042.h | 6 -- include/linux/mroute.h | 2 +- include/linux/mroute6.h | 2 +- include/linux/posix_acl.h | 1 + include/linux/serio.h | 24 ++++-- include/net/tcp.h | 2 + kernel/sched.c | 36 ++++---- kernel/trace/trace.c | 15 ++-- mm/hugetlb.c | 4 + mm/ksm.c | 3 +- mm/shmem.c | 2 +- net/bluetooth/l2cap_sock.c | 2 +- net/bluetooth/rfcomm/sock.c | 19 +++-- net/ipv4/ipmr.c | 3 +- net/ipv4/route.c | 3 +- net/ipv4/tcp_output.c | 3 +- net/ipv6/ip6mr.c | 5 +- net/ipv6/route.c | 4 +- net/irda/af_irda.c | 12 +-- net/l2tp/l2tp_ppp.c | 7 +- net/netfilter/nfnetlink_queue.c | 3 - net/netlabel/netlabel_kapi.c | 12 ++- net/sunrpc/svc.c | 7 +- net/xfrm/xfrm_state.c | 1 + net/xfrm/xfrm_user.c | 9 +- security/keys/proc.c | 2 +- sound/core/control.c | 2 + sound/core/rawmidi.c | 4 +- sound/core/timer.c | 72 ++++++++++------ virt/kvm/kvm_main.c | 2 + 209 files changed, 1277 insertions(+), 730 deletions(-)
Al Viro (23):
alpha: fix copy_from_user()
asm-generic: make copy_from_user() zero the destination properly
asm-generic: make get_user() clear the destination on errors
cris: buggered copy_from_user/copy_to_user/clear_user
frv: fix clear_user()
hexagon: fix strncpy_from_user() error return
ia64: copy_from_user() should zero the destination on access_ok() failure
mn10300: failing __get_user() and get_user() should zero
mn10300: copy_from_user() should zero on access_ok() failure...
openrisc: fix copy_from_user()
parisc: fix copy_from_user()
ppc32: fix copy_from_user()
s390: get_user() should zero on failure
score: fix __get_user/get_user
score: fix copy_from_user() and friends
sh64: failing __get_user() should zero
sh: fix copy_from_user()
sparc32: fix copy_from_user()
blackfin: fix copy_from_user()
m32r: fix __get_user()
microblaze: fix copy_from_user()
microblaze: fix __get_user()
avr32: fix copy_from_user()
Alan Stern (4):
USB: validate wMaxPacketValue entries in endpoint descriptors
USB: fix typo in wMaxPacketSize validation
USB: avoid left shift by -1
USB: change bInterval default to 10 ms
Aleksandr Makarov (2):
USB: serial: option: add WeTelecom WM-D200
USB: serial: option: add WeTelecom 0x6802 and 0x6803 products
Alex Deucher (1):
drm/radeon: fix firmware info version checks
Alex Vesker (1):
IB/ipoib: Don't allow MC joins during light MC flush
Alexey Khoroshilov (2):
USB: serial: mos7720: fix non-atomic allocation in write path
USB: serial: mos7840: fix non-atomic allocation in write path
Amadeusz Sławiński (1):
Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTU
Andrey Pronin (1):
tpm: read burstcount from TPM_STS in one 32-bit transaction
Ard Biesheuvel (1):
crypto: cryptd - initialize child shash_desc on import
Ashish Samant (1):
ocfs2: fix start offset to ocfs2_zero_range_for_truncate()
Balbir Singh (1):
sched/core: Fix a race between try_to_wake_up() and a woken up task
Ben Hutchings (1):
Linux 3.2.84
Benjamin Coddington (1):
nfs: don't create zero-length requests
Bharata B Rao (1):
powerpc/numa: Fix multiple bugs in memory_hotplug_max()
Cameron Gutman (1):
Input: xpad - validate USB endpoint count during probe
Christian König (1):
drm/radeon: fix radeon_move_blit on 32bit systems
Chuck Lever (2):
svc: Avoid garbage replies when pc_func() returns rpc_drop_reply
NFS: Don't drop CB requests with invalid principals
Dan Carpenter (7):
mtd: pmcmsp-flash: Allocating too much in init_msp_flash()
MIPS: RM7000: Double locking bug in rm7k_tc_disable()
avr32: off by one in at32_init_pio()
hostfs: Freeing an ERR_PTR in hostfs_fill_sb_common()
usb: gadget: fsl_qe_udc: signedness bug in qe_get_frame()
scsi: arcmsr: Buffer overflow in arcmsr_iop_message_xfer()
ext3: NULL dereference in ext3_evict_inode()
Daniel Vetter (1):
drm: Reject page_flip for !DRIVER_MODESET
Daniele Palmas (1):
USB: serial: option: add support for Telit LE910 PID 0x1206
Dave Carroll (1):
aacraid: Check size values after double-fetch from user
Dave Weinstein (1):
arm: oabi compat: add missing access checks
David Howells (3):
KEYS: 64-bit MIPS needs to use compat_sys_keyctl for 32-bit userspace x86/syscalls/64: Add compat_sys_keyctl for 32-bit userspace
KEYS: Fix short sprintf buffer in /proc/keys show function
Dmitry Torokhov (3):
tty/vt/keyboard: fix OOB access in do_compute_shiftstate()
Input: i8042 - break load dependency between atkbd/psmouse and i8042
Input: i8042 - set up shared ps2_cmd_mutex for AUX ports
Dmitry Tunin (1):
Bluetooth: Add support of 13d3:3490 AR3012 device
Erez Shitrit (2):
IB/core: Fix use after free in send_leave function IB/ipoib: Fix memory corruption in ipoib cm mode connect flow
Eric Dumazet (1):
tcp: fix use after free in tcp_xmit_retransmit_queue()
Florian Fainelli (2):
net: ethoc: Fix early error paths
brcmsmac: Initialize power in brcms_c_stf_ss_algo_channel_get()
Gavin Li (1):
cdc-acm: fix wrong pipe type on rx interrupt xfers
Guenter Roeck (2):
avr32: fix 'undefined reference to `___copy_from_user'
openrisc: fix the fix of copy_from_user()
Hector Palacios (1):
mtd: nand: fix bug writing 1 byte less than page size
Helge Deller (1):
parisc: Fix order of EREFUSED define in errno.h
Herbert Xu (3):
crypto: gcm - Filter out async ghash if necessary
crypto: scatterwalk - Fix test in scatterwalk_done
crypto: skcipher - Fix blkcipher walk OOM crash
Ilan Tayari (1):
xfrm: Fix memory leak of aead algorithm name
Iosif Harutyunov (1):
ubi: Fix race condition between ubi device creation and udev
Jaganath Kanakkassery (1):
Bluetooth: Fix potential NULL dereference in RFCOMM bind callback
James Hogan (1):
s390: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO
Jan Beulich (2):
xenbus: don't BUG() on user mode induced condition
xenbus: don't look up transaction IDs for ordinary writes
Jan Kara (3):
fs: Give dentry to inode_change_ok() instead of inode
fs: Avoid premature clearing of capabilities
posix_acl: Clear SGID bit when setting file permissions
Jeff Mahoney (1):
btrfs: ensure that file descriptor used with subvol ioctls is a dir
Jia He (1):
mm/hugetlb: avoid soft lockup in set_max_huge_pages()
Jim Lin (1):
usb: xhci: Fix panic if disconnect
Jim Mattson (1):
KVM: nVMX: Fix memory corruption when using VMCS shadowing
Jiri Slaby (1):
pps: do not crash when failed to register
Joseph Qi (1):
ocfs2/dlm: fix race between convert and migration
Karl Beldan (1):
mtd: nand: davinci: Reinitialize the HW ECC engine in 4bit hwctl
Konstantin Neumoin (1):
balloon: check the number of available pages in leak balloon
Krzysztof Kozlowski (1):
serial: samsung: Fix possible out of bounds access on non-DT platform
Lauro Costa (1):
Bluetooth: Add USB ID 13D3:3487 to ath3k
Linus Walleij (2):
iio: accel: kxsd9: Fix raw read return
iio: accel: kxsd9: Fix scaling bug
Liping Zhang (1):
netfilter: nfnetlink_queue: reject verdict request from different portid
Liu Bo (1):
Btrfs: skip adding an acl attribute if we don't have to
Lubomir Rintel (1):
USB: serial: option: add D-Link DWM-156/A3
Lukas Wunner (3):
x86/quirks: Apply nvidia_bugs quirk only on root bus x86/quirks: Reintroduce scanning of secondary buses x86/quirks: Add early quirk to reset Apple AirPort card
Lyude (1):
drm/radeon: Poll for both connect/disconnect on analog connectors
Mario Kleiner (1):
drm/edid: Add 6 bpc quirk for display AEO model 0.
Mathias Krause (1):
xfrm_user: propagate sec ctx allocation errors
Mathias Nyman (1):
xhci: don't dereference a xhci member after removing xhci
Michael Walle (1):
hwmon: (adt7411) set bit 3 in CFG1 register
Mike Snitzer (1):
dm flakey: error READ bios during the down_interval
Nikolay Aleksandrov (1):
ipmr, ip6mr: fix scheduling while atomic and a deadlock with ipmr_get_route
Paolo Bonzini (1):
KVM: nVMX: fix lifetime issues for vmcs02
Paul Moore (1):
netlabel: add address family checks to netlbl_{sock,req}_delattr()
Phil Turnbull (1):
ceph: Correctly return NXIO errors from ceph_llseek
Robert Deliën (1):
USB: serial: ftdi_sio: add PIDs for Ivium Technologies devices
Russell King (1):
ARM: sa1111: fix pcmcia suspend/resume
Sebastian Andrzej Siewior (1):
x86/mm: Disable preemption during CR3 read+write
Sebastian Reichel (1):
ARM: OMAP3: hwmod data: Add sysc information for DSI
Sergei Miroshnichenko (1):
can: dev: fix deadlock reported after bus-off
Sheng-Hui J. Chu (1):
USB: serial: ftdi_sio: add device ID for WICED USB UART dev board
Soheil Hassas Yeganeh (1):
tcp: consider recv buf for the initial window scale
Stefan Haberland (1):
s390/dasd: fix hanging device after clear subchannel
Stefan Richter (1):
firewire: net: guard against rx buffer overflows
Steven Rostedt (1):
x86/paravirt: Do not trace _paravirt_ident_*() functions
Steven Rostedt (Red Hat) (1):
tracing: Move mutex to protect against resetting of seq data
Takashi Iwai (4):
ALSA: ctl: Stop notification after disconnection
ALSA: timer: Code cleanup
ALSA: timer: Fix zero-division by continue of uninitialized instance
ALSA: rawmidi: Fix possible deadlock with virmidi registration
Theodore Ts'o (2):
ext4: validate s_reserved_gdt_blocks on mount
ext4: validate that metadata blocks do not overlap superblock
Trond Myklebust (1):
NFSv4.1: Fix the CREATE_SESSION slot number accounting
Vegard Nossum (10):
ext4: check for extents that wrap around
ext4: don't call ext4_should_journal_data() on the journal inode
ext4: fix reference counting bug on block allocation error
ext4: short-cut orphan cleanup on error
net/irda: fix NULL pointer dereference on memory allocation failure
block: fix use-after-free in seq file
fs/seq_file: fix out-of-bounds read
ALSA: timer: fix division by zero after SNDRV_TIMER_IOCTL_CONTINUE
ALSA: timer: fix NULL pointer dereference on memory allocation failure
ALSA: timer: fix NULL pointer dereference in read()/ioctl() race
Vincent Stehlé (1):
ubifs: Fix assertion in layout_in_gaps()
Vladis Dronov (1):
usbvision: revert commit 588afcc1
WANG Cong (1):
ppp: defer netns reference release for ppp channel
Wanpeng Li (2):
sched/cputime: Fix prev steal time accouting during CPU hotplug x86/apic: Do not init irq remapping if ioapic is disabled
Yadi.hu (1):
i2c-eg20t: fix race between i2c init and interrupt enable
Yinghai Lu (1):
megaraid_sas: Fix probing cards without io port
Yoshihiro Shimoda (2):
usb: renesas_usbhs: fix NULL pointer dereference in xfer_work()
usb: renesas_usbhs: protect the CFIFOSEL setting in usbhsg_ep_enable()
[email protected] (2):
l2tp: Correctly return -EBADF from pppol2tp_getname.
irda: Free skb on irda_accept error path.
zhong jiang (1):
mm,ksm: fix endless looping in allocating memory when ksm enable
Documentation/filesystems/porting +2 -2
@@ -288,8 +288,8 @@ implementing on-disk size changes. Start with a copy of the old inode_setattr and vmtruncate, and the reorder the vmtruncate + foofs_vmtruncate sequence to be in order of zeroing blocks using block_truncate_page or similar helpers, size update and on finally on-disk truncation which should not fail. -inode_change_ok now includes the size checks for ATTR_SIZE and must be called -in the beginning of ->setattr unconditionally. +setattr_prepare (which used to be inode_change_ok) now includes the size checks +for ATTR_SIZE and must be called in the beginning of ->setattr unconditionally. [mandatory]
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 2 -SUBLEVEL = 83 +SUBLEVEL = 84 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/alpha/include/asm/uaccess.h +8 -11
@@ -371,14 +371,6 @@ __copy_tofrom_user_nocheck(void *to, const void *from, long len)return __cu_len; } -extern inline long -__copy_tofrom_user (void *to,const void *from,long len,const void __user *validate) -{ -if (__access_ok ((unsigned long )validate, len,get_fs ())) - len =__copy_tofrom_user_nocheck (to, from, len); -return len; -} -#define __copy_to_user (to,from,n) \ ({ \ __chk_user_ptr(to); \
@@ -393,17 +385,22 @@ __copy_tofrom_user(void *to, const void *from, long len, const void __user *vali#define __copy_to_user_inatomic __copy_to_user#define __copy_from_user_inatomic __copy_from_user -extern inline long copy_to_user (void __user *to,const void *from,long n) { -return __copy_tofrom_user ((__force void *)to, from, n, to); +if (likely (__access_ok ((unsigned long )to, n,get_fs ()))) + n =__copy_tofrom_user_nocheck ((__force void *)to, from, n); +return n; }extern inline long copy_from_user (void *to,const void __user *from,long n) { -return __copy_tofrom_user (to, (__force void *)from, n, from); +if (likely (__access_ok ((unsigned long )from, n,get_fs ()))) + n =__copy_tofrom_user_nocheck (to, (__force void *)from, n); +else +memset (to,0 , n); +return n; }extern void __do_clear_user (void );
arch/arm/common/sa1111.c +13 -9
@@ -878,9 +878,9 @@ struct sa1111_save_data {#ifdef CONFIG_PM -static int sa1111_suspend (struct platform_device *dev,pm_message_t state) +static int sa1111_suspend_noirq (struct device *dev) { -struct sa1111 *sachip =platform_get_drvdata (dev); +struct sa1111 *sachip =dev_get_drvdata (dev);struct sa1111_save_data *save;unsigned long flags;unsigned int val;
@@ -938,9 +938,9 @@ static int sa1111_suspend(struct platform_device *dev, pm_message_t state)* restored by their respective drivers, and must be called * via LDM after this function. */ -static int sa1111_resume (struct platform_device *dev) +static int sa1111_resume_noirq (struct device *dev) { -struct sa1111 *sachip =platform_get_drvdata (dev); +struct sa1111 *sachip =dev_get_drvdata (dev);struct sa1111_save_data *save;unsigned long flags, id;void __iomem *base;
@@ -956,7 +956,7 @@ static int sa1111_resume(struct platform_device *dev) id =sa1111_readl (sachip->base +SA1111_SKID );if ((id &SKID_ID_MASK ) !=SKID_SA1111_ID ) {__sa1111_remove (sachip); -platform_set_drvdata (dev,NULL ); +dev_set_drvdata (dev,NULL );kfree (save);return 0 ; }
@@ -1002,8 +1002,8 @@ static int sa1111_resume(struct platform_device *dev) }#else -#define sa1111_suspend NULL -#define sa1111_resume NULL +#define sa1111_suspend_noirq NULL +#define sa1111_resume_noirq NULL#endif static int __devinit sa1111_probe (struct platform_device *pdev)
@@ -1037,6 +1037,11 @@ static int sa1111_remove(struct platform_device *pdev)return 0 ; } +static struct dev_pm_ops sa1111_pm_ops = { + .suspend_noirq = sa1111_suspend_noirq, + .resume_noirq = sa1111_resume_noirq, +}; +/* * Not sure if this should be on the system bus or not yet. * We really want some way to register a system device at
@@ -1049,10 +1054,9 @@ static int sa1111_remove(struct platform_device *pdev)static struct platform_driver sa1111_device_driver = { .probe = sa1111_probe, .remove = sa1111_remove, - .suspend = sa1111_suspend, - .resume = sa1111_resume, .driver = { .name ="sa1111" , + .pm = &sa1111_pm_ops, }, };
arch/arm/kernel/sys_oabi-compat.c +7 -1
@@ -275,8 +275,12 @@ asmlinkage long sys_oabi_epoll_wait(int epfd,mm_segment_t fs;long ret, err, i; -if (maxevents <=0 || maxevents > (INT_MAX /sizeof (struct epoll_event ))) +if (maxevents <=0 || + maxevents > (INT_MAX /sizeof (*kbuf)) || + maxevents > (INT_MAX /sizeof (*events)))return -EINVAL ; +if (!access_ok (VERIFY_WRITE , events,sizeof (*events) * maxevents)) +return -EFAULT ; kbuf =kmalloc (sizeof (*kbuf) * maxevents,GFP_KERNEL );if (!kbuf)return -ENOMEM ;
@@ -313,6 +317,8 @@ asmlinkage long sys_oabi_semtimedop(int semid,if (nsops <1 || nsops >SEMOPM )return -EINVAL ; +if (!access_ok (VERIFY_READ , tsops,sizeof (*tsops) * nsops)) +return -EFAULT ; sops =kmalloc (sizeof (*sops) * nsops,GFP_KERNEL );if (!sops)return -ENOMEM ;
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +12 -0
@@ -1470,8 +1470,20 @@ static struct omap_hwmod omap3xxx_dss_dispc_hwmod = {* display serial interface controller */ +static struct omap_hwmod_class_sysconfig omap3xxx_dsi_sysc = { + .rev_offs =0x0000 , + .sysc_offs =0x0010 , + .syss_offs =0x0014 , + .sysc_flags = (SYSC_HAS_AUTOIDLE |SYSC_HAS_CLOCKACTIVITY | +SYSC_HAS_ENAWAKEUP |SYSC_HAS_SIDLEMODE | +SYSC_HAS_SOFTRESET |SYSS_HAS_RESET_STATUS ), + .idlemodes = (SIDLE_FORCE |SIDLE_NO |SIDLE_SMART ), + .sysc_fields = &omap_hwmod_sysc_type1, +}; +static struct omap_hwmod_class omap3xxx_dsi_hwmod_class = { .name ="dsi" , + .sysc = &omap3xxx_dsi_sysc, };static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs[] = {
arch/avr32/include/asm/uaccess.h +10 -1
@@ -74,7 +74,7 @@ extern __kernel_size_t __copy_user(void *to, const void *from,extern __kernel_size_t copy_to_user (void __user *to,const void *from,__kernel_size_t n); -extern __kernel_size_t copy_from_user (void *to,const void __user *from, +extern __kernel_size_t ___copy_from_user (void *to,const void __user *from,__kernel_size_t n); static inline __kernel_size_t __copy_to_user(void __user *to, const void *from,
@@ -88,6 +88,15 @@ static inline __kernel_size_t __copy_from_user(void *to, {return __copy_user (to, (const void __force *)from, n); } +static inline __kernel_size_t copy_from_user (void *to, +const void __user *from, +__kernel_size_t n) +{ +size_t res =___copy_from_user (to, from, n); +if (unlikely (res)) +memset (to + (n - res),0 , res); +return res; +}#define __copy_to_user_inatomic __copy_to_user#define __copy_from_user_inatomic __copy_from_user
arch/avr32/kernel/avr32_ksyms.c +1 -1
@@ -36,7 +36,7 @@ EXPORT_SYMBOL(copy_page);/* * Userspace access stuff. */ -EXPORT_SYMBOL (copy_from_user); +EXPORT_SYMBOL (___copy_from_user);EXPORT_SYMBOL (copy_to_user);EXPORT_SYMBOL (__copy_user);EXPORT_SYMBOL (strncpy_from_user);
arch/avr32/lib/copy_user.S +4 -4
@@ -23,13 +23,13 @@ */ .text .align 1 - .global copy_from_user - .type copy_from_user, @function -copy_from_user: + .global ___copy_from_user + .type ___copy_from_user, @function +___copy_from_user: branch_if_kernel r8, __copy_user ret_if_privileged r8, r11, r10, r10 rjmp __copy_user - .size copy_from_user, . - copy_from_user + .size ___copy_from_user, . - ___copy_from_user .global copy_to_user .type copy_to_user, @function
arch/avr32/mach-at32ap/pio.c +1 -1
@@ -435,7 +435,7 @@ void __init at32_init_pio(struct platform_device *pdev)struct resource *regs;struct pio_device *pio; -if (pdev->id >MAX_NR_PIO_DEVICES ) { +if (pdev->id >=MAX_NR_PIO_DEVICES ) {dev_err (&pdev->dev,"only %d PIO devices supported\n" ,MAX_NR_PIO_DEVICES );return ;
arch/blackfin/include/asm/uaccess.h +5 -4
@@ -194,11 +194,12 @@ static inline int bad_user_access_length(void)static inline unsigned long __must_check copy_from_user (void *to,const void __user *from,unsigned long n) { -if (access_ok (VERIFY_READ , from, n)) +if (likely (access_ok (VERIFY_READ , from, n))) {memcpy (to, (const void __force *)from, n); -else -return n; -return 0 ; +return 0 ; + } +memset (to,0 , n); +return n; } static inline unsigned long __must_check
arch/cris/include/asm/uaccess.h +32 -39
102 lines not on this page · raw message
arch/frv/include/asm/uaccess.h +9 -3
@@ -263,19 +263,25 @@ do { \extern long __memset_user (void *dst,unsigned long count);extern long __memcpy_user (void *dst,const void *src,unsigned long count); -#define clear_user (dst,count) __memset_user(____force(dst), (count)) +#define __clear_user (dst,count) __memset_user(____force(dst), (count))#define __copy_from_user_inatomic (to, from, n) __memcpy_user((to), ____force(from), (n))#define __copy_to_user_inatomic (to, from, n) __memcpy_user(____force(to), (from), (n))#else -#define clear_user (dst,count) (memset(____force(dst), 0, (count)), 0) +#define __clear_user (dst,count) (memset(____force(dst), 0, (count)), 0)#define __copy_from_user_inatomic (to, from, n) (memcpy((to), ____force(from), (n)), 0)#define __copy_to_user_inatomic (to, from, n) (memcpy(____force(to), (from), (n)), 0)#endif -#define __clear_user clear_user +static inline unsigned long __must_check +clear_user (void __user *to,unsigned long n) +{ +if (likely (__access_ok (to, n))) + n =__clear_user (to, n); +return n; +}static inline unsigned long __must_check __copy_to_user (void __user *to,const void *from,unsigned long n)
arch/hexagon/include/asm/uaccess.h +2 -1
@@ -102,7 +102,8 @@ static inline long hexagon_strncpy_from_user(char *dst, const char __user *src, {long res =__strnlen_user (src, n); -/* return from strnlen can't be zero -- that would be rubbish. */ +if (unlikely (!res)) +return -EFAULT ;if (res > n) {copy_from_user (dst, src, n);
arch/ia64/include/asm/uaccess.h +9 -11
@@ -262,17 +262,15 @@ __copy_from_user (void *to, const void __user *from, unsigned long count) __cu_len; \ }) -#define copy_from_user (to, from, n) \ -({ \ - void *__cu_to = (to); \ - const void __user *__cu_from = (from); \ - long __cu_len = (n); \ - \ - __chk_user_ptr(__cu_from); \ - if (__access_ok(__cu_from, __cu_len, get_fs())) \ - __cu_len = __copy_user((__force void __user *) __cu_to, __cu_from, __cu_len); \ - __cu_len; \ -}) +static inline unsigned long +copy_from_user (void *to,const void __user *from,unsigned long n) +{ +if (likely (__access_ok (from, n,get_fs ()))) + n =__copy_user ((__force void __user *) to, from, n); +else +memset (to,0 , n); +return n; +}#define __copy_in_user (to, from, size) __copy_user((to), (from), (size))
arch/m32r/include/asm/uaccess.h +1 -1
@@ -215,7 +215,7 @@ extern int fixup_exception(struct pt_regs *regs);#define __get_user_nocheck (x,ptr,size) \ ({ \ long __gu_err = 0; \ - unsigned long __gu_val; \ + unsigned long __gu_val = 0; \ might_sleep(); \ __get_user_size(__gu_val,(ptr),(size),__gu_err); \ (x) = (__typeof__(*(ptr)))__gu_val; \
arch/microblaze/include/asm/uaccess.h +7 -4
@@ -218,7 +218,7 @@ extern long __user_bad(void);#define __get_user (x, ptr) \ ({ \ - unsigned long __gu_val; \ + unsigned long __gu_val = 0; \/*unsigned long __gu_ptr = (unsigned long)(ptr);*/ \long __gu_err; \switch (sizeof (*(ptr))) { \
@@ -364,10 +364,13 @@ extern long __user_bad(void);static inline long copy_from_user (void *to,const void __user *from,unsigned long n) { +unsigned long res = n;might_sleep (); -if (access_ok (VERIFY_READ , from, n)) -return __copy_from_user (to, from, n); -return n; +if (likely (access_ok (VERIFY_READ , from, n))) + res =__copy_from_user (to, from, n); +if (unlikely (res)) +memset (to + (n - res),0 , res); +return res; }#define __copy_to_user (to, from, n) \
arch/mips/kernel/scall64-n32.S +1 -1
@@ -366,7 +366,7 @@ EXPORT(sysn32_call_table) PTR sys_ni_syscall /* available, was setaltroot */ PTR sys_add_key PTR sys_request_key - PTR sys_keyctl /* 6245 */ + PTR compat_sys_keyctl /* 6245 */ PTR sys_set_thread_area PTR sys_inotify_init PTR sys_inotify_add_watch
arch/mips/kernel/scall64-o32.S +1 -1
@@ -486,7 +486,7 @@ sys_call_table: PTR sys_ni_syscall /* available, was setaltroot */ PTR sys_add_key /* 4280 */ PTR sys_request_key - PTR sys_keyctl + PTR compat_sys_keyctl PTR sys_set_thread_area PTR sys_inotify_init PTR sys_inotify_add_watch /* 4285 */
arch/mips/mm/sc-rm7k.c +1 -1
@@ -162,7 +162,7 @@ static void rm7k_tc_disable(void)local_irq_save (flags);blast_rm7k_tcache ();clear_c0_config (RM7K_CONF_TE ); -local_irq_save (flags); +local_irq_restore (flags); }static void rm7k_sc_disable (void )
arch/mn10300/include/asm/uaccess.h +1 -0
@@ -181,6 +181,7 @@ struct __large_struct { unsigned long buf[100]; };"2:\n" \" .section .fixup,\"ax\"\n" \"3:\n\t" \ +" mov 0,%1\n" \" mov %3,%0\n" \" jmp 2b\n" \" .previous\n" \
arch/mn10300/lib/usercopy.c +4 -1
@@ -9,7 +9,8 @@* as published by the Free Software Foundation; either version * 2 of the Licence, or (at your option) any later version. */ -#include <asm/uaccess.h> +#include <linux/string.h> +#include <linux/uaccess.h> unsigned long __generic_copy_to_user (void *to,const void *from,unsigned long n)
@@ -24,6 +25,8 @@ __generic_copy_from_user(void *to, const void *from, unsigned long n) {if (access_ok (VERIFY_READ , from, n))__copy_user_zeroing (to, from, n); +else +memset (to,0 , n);return n; }
arch/openrisc/include/asm/uaccess.h +11 -24
@@ -274,28 +274,20 @@ __copy_tofrom_user(void *to, const void *from, unsigned long size);static inline unsigned long copy_from_user (void *to,const void *from,unsigned long n) { -unsigned long over; - -if (access_ok (VERIFY_READ , from, n)) -return __copy_tofrom_user (to, from, n); -if ((unsigned long )from <TASK_SIZE ) { - over = (unsigned long )from + n -TASK_SIZE ; -return __copy_tofrom_user (to, from, n - over) + over; - } -return n; +unsigned long res = n; + +if (likely (access_ok (VERIFY_READ , from, n))) + res =__copy_tofrom_user (to, from, n); +if (unlikely (res)) +memset (to + (n - res),0 , res); +return res; }static inline unsigned long copy_to_user (void *to,const void *from,unsigned long n) { -unsigned long over; - -if (access_ok (VERIFY_WRITE , to, n)) -return __copy_tofrom_user (to, from, n); -if ((unsigned long )to <TASK_SIZE ) { - over = (unsigned long )to + n -TASK_SIZE ; -return __copy_tofrom_user (to, from, n - over) + over; - } +if (likely (access_ok (VERIFY_WRITE , to, n))) + n =__copy_tofrom_user (to, from, n);return n; }
@@ -304,13 +296,8 @@ extern unsigned long __clear_user(void *addr, unsigned long size);static inline __must_check unsigned long clear_user (void *addr,unsigned long size) { - -if (access_ok (VERIFY_WRITE , addr, size)) -return __clear_user (addr, size); -if ((unsigned long )addr <TASK_SIZE ) { -unsigned long over = (unsigned long )addr + size -TASK_SIZE ; -return __clear_user (addr, size - over) + over; - } +if (likely (access_ok (VERIFY_WRITE , addr, size))) + size =__clear_user (addr, size);return size; }
arch/parisc/include/asm/errno.h +2 -2
@@ -97,10 +97,10 @@#define ENOTCONN 235/* Transport endpoint is not connected */ #define ESHUTDOWN 236/* Cannot send after transport endpoint shutdown */ #define ETOOMANYREFS 237/* Too many references: cannot splice */ -#define EREFUSED ECONNREFUSED/* for HP's NFS apparently */ #define ETIMEDOUT 238/* Connection timed out */ #define ECONNREFUSED 239/* Connection refused */ -#define EREMOTERELEASE 240/* Remote peer released connection */ +#define EREFUSED ECONNREFUSED/* for HP's NFS apparently */ +#define EREMOTERELEASE 240/* Remote peer released connection */ #define EHOSTDOWN 241/* Host is down */ #define EHOSTUNREACH 242/* No route to host */
arch/parisc/include/asm/uaccess.h +5 -2
@@ -10,6 +10,8 @@#include <asm/errno.h> #include <asm-generic/uaccess-unaligned.h> +#include <linux/string.h> +#define VERIFY_READ 0#define VERIFY_WRITE 1
@@ -255,13 +257,14 @@ static inline unsigned long __must_check copy_from_user(void *to, unsigned long n) {int sz =__compiletime_object_size (to); -int ret = -EFAULT ; +unsigned long ret = n;if (likely (sz ==-1 || !__builtin_constant_p (n) || sz >= n)) ret =__copy_from_user (to, from, n);else copy_from_user_overflow (); - +if (unlikely (ret)) +memset (to + (n - ret),0 , ret);return ret; }
arch/powerpc/include/asm/uaccess.h +2 -19
@@ -332,30 +332,17 @@ extern unsigned long __copy_tofrom_user(void __user *to,static inline unsigned long copy_from_user (void *to,const void __user *from,unsigned long n) { -unsigned long over; - -if (access_ok (VERIFY_READ , from, n)) +if (likely (access_ok (VERIFY_READ , from, n)))return __copy_tofrom_user ((__force void __user *)to, from, n); -if ((unsigned long )from <TASK_SIZE ) { - over = (unsigned long )from + n -TASK_SIZE ; -return __copy_tofrom_user ((__force void __user *)to, from, - n - over) + over; - } +memset (to,0 , n);return n; }static inline unsigned long copy_to_user (void __user *to,const void *from,unsigned long n) { -unsigned long over; -if (access_ok (VERIFY_WRITE , to, n))return __copy_tofrom_user (to, (__force void __user *)from, n); -if ((unsigned long )to <TASK_SIZE ) { - over = (unsigned long )to + n -TASK_SIZE ; -return __copy_tofrom_user (to, (__force void __user *)from, - n - over) + over; - }return n; }
@@ -446,10 +433,6 @@ static inline unsigned long clear_user(void __user *addr, unsigned long size)might_sleep ();if (likely (access_ok (VERIFY_WRITE , addr, size)))return __clear_user (addr, size); -if ((unsigned long )addr <TASK_SIZE ) { -unsigned long over = (unsigned long )addr + size -TASK_SIZE ; -return __clear_user (addr, size - over) + over; - }return size; }
arch/powerpc/mm/numa.c +17 -1
@@ -1275,17 +1275,33 @@ int hot_add_scn_to_nid(unsigned long scn_addr)static u64 hot_add_drconf_memory_max (void ) {struct device_node *memory =NULL ; +struct device_node *dn =NULL ;unsigned int drconf_cell_cnt =0 ;u64 lmb_size =0 ;const u32 *dm =0 ; +const __be64 *lrdr =NULL ; +struct of_drconf_cell drmem; + + dn =of_find_node_by_path ("/rtas" ); +if (dn) { + lrdr =of_get_property (dn,"ibm,lrdr-capacity" ,NULL ); +of_node_put (dn); +if (lrdr) +return be64_to_cpup (lrdr); + } memory =of_find_node_by_path ("/ibm,dynamic-reconfiguration-memory" );if (memory) { drconf_cell_cnt =of_get_drconf_memory (memory, &dm); lmb_size =of_get_lmb_size (memory); + +/* Advance to the last cell, each cell has 6 32 bit integers */ + dm += (drconf_cell_cnt -1 ) *6 ; +read_drconf_cell (&drmem, &dm);of_node_put (memory); +return drmem.base_addr + lmb_size; } -return lmb_size * drconf_cell_cnt; +return 0 ; }/*
arch/s390/include/asm/auxvec.h +2 -0
@@ -3,4 +3,6 @@#define AT_SYSINFO_EHDR 33 +#define AT_VECTOR_SIZE_ARCH 1/* entries in ARCH_DLINFO */ +#endif
arch/s390/include/asm/elf.h +1 -0
@@ -199,6 +199,7 @@ do { \#define STACK_RND_MASK 0x7ffUL +/* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */ #define ARCH_DLINFO \ do { \ if (vdso_enabled) \
arch/s390/include/asm/uaccess.h +4 -4
@@ -147,28 +147,28 @@ extern int __put_user_bad(void) __attribute__((noreturn));__chk_user_ptr (ptr); \switch (sizeof (*(ptr))) { \case 1 : { \ -unsigned char __x; \ +unsigned char __x =0 ; \ __gu_err =__get_user_fn (sizeof (*(ptr)), \ ptr, &__x); \ (x) = *(__force __typeof__(*(ptr)) *) &__x; \break ; \ }; \case 2 : { \ -unsigned short __x; \ +unsigned short __x =0 ; \ __gu_err =__get_user_fn (sizeof (*(ptr)), \ ptr, &__x); \ (x) = *(__force __typeof__(*(ptr)) *) &__x; \break ; \ }; \case 4 : { \ -unsigned int __x; \ +unsigned int __x =0 ; \ __gu_err =__get_user_fn (sizeof (*(ptr)), \ ptr, &__x); \ (x) = *(__force __typeof__(*(ptr)) *) &__x; \break ; \ }; \case 8 : { \ -unsigned long long __x; \ +unsigned long long __x =0 ; \ __gu_err =__get_user_fn (sizeof (*(ptr)), \ ptr, &__x); \ (x) = *(__force __typeof__(*(ptr)) *) &__x; \
arch/score/include/asm/uaccess.h +24 -22
95 lines not on this page · raw message
arch/sh/include/asm/uaccess.h +4 -1
@@ -175,7 +175,10 @@ copy_from_user(void *to, const void __user *from, unsigned long n)__kernel_size_t __copy_size = (__kernel_size_t ) n;if (__copy_size &&__access_ok (__copy_from, __copy_size)) -return __copy_user (to, from, __copy_size); + __copy_size =__copy_user (to, from, __copy_size); + +if (unlikely (__copy_size)) +memset (to + (n - __copy_size),0 , __copy_size);return __copy_size; }
arch/sh/include/asm/uaccess_64.h +1 -0
@@ -24,6 +24,7 @@#define __get_user_size (x,ptr,size,retval) \ do { \ retval = 0; \ + x = 0; \ switch (size) { \ case 1: \ retval = __get_user_asm_b((void *)&x, \
arch/sparc/include/asm/uaccess_32.h +3 -1
@@ -264,8 +264,10 @@ static inline unsigned long copy_from_user(void *to, const void __user *from, un {if (n &&__access_ok ((unsigned long ) from, n))return __copy_user ((__force void __user *) to, from, n); -else +else { +memset (to,0 , n);return n; + } }static inline unsigned long __copy_from_user (void *to,const void __user *from,unsigned long n)
arch/x86/ia32/ia32entry.S +1 -1
@@ -791,7 +791,7 @@ ia32_sys_call_table: .quad quiet_ni_syscall /* 285: sys_altroot */ .quad sys_add_key .quad sys_request_key - .quad sys_keyctl + .quad compat_sys_keyctl .quad sys_ioprio_set .quad sys_ioprio_get /* 290 */ .quad sys_inotify_init
arch/x86/include/asm/tlbflush.h +7 -0
@@ -17,7 +17,14 @@static inline void __native_flush_tlb (void ) { +/* +* If current->mm == NULL then we borrow a mm which may change during a +* task switch and therefore we must not be preempted while we write CR3 +* back: +*/ +preempt_disable ();native_write_cr3 (native_read_cr3 ()); +preempt_enable (); }static inline void __native_flush_tlb_global (void )
arch/x86/kernel/apic/apic.c +3 -0
@@ -1481,6 +1481,9 @@ void __init enable_IR_x2apic(void)int ret, x2apic_enabled =0 ;int dmar_table_init_ret; +if (skip_ioapic_setup) +return ; + dmar_table_init_ret =dmar_table_init ();if (dmar_table_init_ret && !x2apic_supported ())return ;
arch/x86/kernel/early-quirks.c +93 -13
177 lines not on this page · raw message
arch/x86/kernel/paravirt.c +2 -2
@@ -52,12 +52,12 @@ asm (".pushsection .entry.text, \"ax\"\n" ".popsection");/* identity function, which can be inlined */ -u32 _paravirt_ident_32 (u32 x) +u32 notrace _paravirt_ident_32(u32 x) {return x; } -u64 _paravirt_ident_64 (u64 x) +u64 notrace _paravirt_ident_64(u64 x) {return x; }
arch/x86/kvm/vmx.c +46 -16
99 lines not on this page · raw message
block/genhd.c +1 -0
@@ -829,6 +829,7 @@ static void disk_seqf_stop(struct seq_file *seqf, void *v)if (iter) {class_dev_iter_exit (iter);kfree (iter); + seqf->private =NULL ; } }
crypto/blkcipher.c +2 -1
@@ -238,6 +238,8 @@ static int blkcipher_walk_next(struct blkcipher_desc *desc,return blkcipher_walk_done (desc, walk, -EINVAL ); } + bsize =min (walk->blocksize, n); + walk->flags &= ~(BLKCIPHER_WALK_SLOW |BLKCIPHER_WALK_COPY |BLKCIPHER_WALK_DIFF ); if (!scatterwalk_aligned(&walk->in, alignmask) ||
@@ -250,7 +252,6 @@ static int blkcipher_walk_next(struct blkcipher_desc *desc, } } - bsize =min (walk->blocksize, n); n =scatterwalk_clamp (&walk->in, n); n =scatterwalk_clamp (&walk->out, n);
crypto/cryptd.c +7 -2
@@ -565,9 +565,14 @@ static int cryptd_hash_export(struct ahash_request *req, void *out)static int cryptd_hash_import (struct ahash_request *req,const void *in) { -struct cryptd_hash_request_ctx *rctx =ahash_request_ctx (req); +struct crypto_ahash *tfm =crypto_ahash_reqtfm (req); +struct cryptd_hash_ctx *ctx =crypto_ahash_ctx (tfm); +struct shash_desc *desc =cryptd_shash_desc (req); + + desc->tfm = ctx->child; + desc->flags = req->base.flags; -return crypto_shash_import (&rctx->desc, in); +return crypto_shash_import (desc, in); } static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb,
crypto/gcm.c +3 -1
@@ -711,7 +711,9 @@ static struct crypto_instance *crypto_gcm_alloc_common(struct rtattr **tb, ghash_alg =crypto_find_alg (ghash_name, &crypto_ahash_type,CRYPTO_ALG_TYPE_HASH , -CRYPTO_ALG_TYPE_AHASH_MASK ); +CRYPTO_ALG_TYPE_AHASH_MASK | +crypto_requires_sync (algt->type, + algt->mask)); err =PTR_ERR (ghash_alg);if (IS_ERR (ghash_alg))return ERR_PTR (err);
crypto/scatterwalk.c +2 -1
@@ -68,7 +68,8 @@ static void scatterwalk_pagedone(struct scatter_walk *walk, int out,void scatterwalk_done (struct scatter_walk *walk,int out,int more) { -if (!(scatterwalk_pagelen (walk) & (PAGE_SIZE -1 )) || !more) +if (!more || walk->offset >= walk->sg->offset + walk->sg->length || + !(walk->offset & (PAGE_SIZE -1 )))scatterwalk_pagedone (walk, out, more); }EXPORT_SYMBOL_GPL (scatterwalk_done);
drivers/bcma/bcma_private.h +0 -2
@@ -8,8 +8,6 @@#include <linux/bcma/bcma.h> #include <linux/delay.h> -#define BCMA_CORE_SIZE 0x1000 -struct bcma_bus ;/* main.c */
drivers/bluetooth/ath3k.c +4 -0
@@ -118,6 +118,8 @@ static struct usb_device_id ath3k_table[] = { { USB_DEVICE(0x13d3, 0x3432) }, { USB_DEVICE(0x13d3, 0x3472) }, { USB_DEVICE(0x13d3, 0x3474) }, + { USB_DEVICE(0x13d3, 0x3487) }, + { USB_DEVICE(0x13d3, 0x3490) },/* Atheros AR5BBU12 with sflash firmware */ { USB_DEVICE(0x0489, 0xE02C) },
@@ -182,6 +184,8 @@ static struct usb_device_id ath3k_blist_tbl[] = { { USB_DEVICE(0x13d3, 0x3432), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3472), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3474), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3487), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3490), .driver_info = BTUSB_ATH3012 }, /* Atheros AR5BBU22 with sflash firmware */ { USB_DEVICE(0x0489, 0xE036), .driver_info = BTUSB_ATH3012 },
drivers/bluetooth/btusb.c +2 -0
@@ -203,6 +203,8 @@ static struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x13d3, 0x3432), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3472), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3474), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3487), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3490), .driver_info = BTUSB_ATH3012 }, /* Atheros AR5BBU12 with sflash firmware */ { USB_DEVICE(0x0489, 0xe02c), .driver_info = BTUSB_IGNORE },
drivers/char/tpm/tpm_tis.c +4 -5
@@ -176,16 +176,15 @@ static int get_burstcount(struct tpm_chip *chip) {unsigned long stop;int burstcnt; +u32 value;/* wait for burstcount */ /* which timeout value, spec has 2 answers (c & d) */ stop = jiffies + chip->vendor.timeout_d; do { - burstcnt = ioread8(chip->vendor.iobase + - TPM_STS(chip->vendor.locality) + 1); - burstcnt += ioread8(chip->vendor.iobase + - TPM_STS(chip->vendor.locality) + - 2) << 8; + value = ioread32(chip->vendor.iobase + + TPM_STS(chip->vendor.locality)); + burstcnt = (value >> 8) & 0xFFFF; if (burstcnt) return burstcnt; msleep(TPM_TIMEOUT);
drivers/firewire/net.c +33 -13
84 lines not on this page · raw message
drivers/gpu/drm/drm_crtc.c +3 -0
@@ -2675,6 +2675,9 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev,unsigned long flags;int ret = -EINVAL ; +if (!drm_core_check_feature (dev,DRIVER_MODESET )) +return -EINVAL ; +if (page_flip->flags & ~DRM_MODE_PAGE_FLIP_FLAGS || page_flip->reserved !=0 )return -EINVAL ;
drivers/gpu/drm/drm_edid.c +8 -0
@@ -68,6 +68,8 @@#define EDID_QUIRK_DETAILED_SYNC_PP (1 << 6)/* Force reduced-blanking timings for detailed modes */ #define EDID_QUIRK_FORCE_REDUCED_BLANKING (1 << 7) +/* Force 6bpc */ +#define EDID_QUIRK_FORCE_6BPC (1 << 10)struct detailed_mode_closure {struct drm_connector *connector;
@@ -94,6 +96,9 @@ static struct edid_quirk {/* Unknown Acer */ { "ACR", 2423, EDID_QUIRK_FIRST_DETAILED_PREFERRED }, +/* AEO model 0 reports 8 bpc, but is a 6 bpc panel */ + { "AEO", 0, EDID_QUIRK_FORCE_6BPC }, +/* Belinea 10 15 55 */ { "MAX", 1516, EDID_QUIRK_PREFER_LARGE_60 }, { "MAX", 0x77e, EDID_QUIRK_PREFER_LARGE_60 },
@@ -1752,6 +1757,9 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid)drm_add_display_info (edid, &connector->display_info); +if (quirks &EDID_QUIRK_FORCE_6BPC ) + connector->display_info.bpc =6 ; +return num_modes; }EXPORT_SYMBOL (drm_add_edid_modes);
drivers/gpu/drm/radeon/radeon_atombios.c +2 -2
@@ -1138,7 +1138,7 @@ bool radeon_atom_get_clock_info(struct drm_device *dev)le16_to_cpu (firmware_info->info.usReferenceClock); p1pll->reference_div =0 ; -if (crev <2 ) +if ((frev <2 ) && (crev <2 )) p1pll->pll_out_min =le16_to_cpu (firmware_info->info.usMinPixelClockPLL_Output);else
@@ -1147,7 +1147,7 @@ bool radeon_atom_get_clock_info(struct drm_device *dev) p1pll->pll_out_max =le32_to_cpu (firmware_info->info.ulMaxPixelClockPLL_Output); -if (crev >=4 ) { +if (((frev <2 ) && (crev >=4 )) || (frev >=2 )) { p1pll->lcd_pll_out_min =le16_to_cpu (firmware_info->info_14.usLcdMinPixelClockPLL_Output) *100 ;if (p1pll->lcd_pll_out_min ==0 )
drivers/gpu/drm/radeon/radeon_connectors.c +9 -6
@@ -1589,7 +1589,6 @@ radeon_add_atom_connector(struct drm_device *dev, 1);/* no HPD on analog connectors */ radeon_connector->hpd.hpd =RADEON_HPD_NONE ; - connector->polled =DRM_CONNECTOR_POLL_CONNECT ; connector->interlace_allowed = true; connector->doublescan_allowed = true;break ;
@@ -1787,8 +1786,10 @@ radeon_add_atom_connector(struct drm_device *dev, }if (radeon_connector->hpd.hpd ==RADEON_HPD_NONE ) { -if (i2c_bus->valid) - connector->polled =DRM_CONNECTOR_POLL_CONNECT ; +if (i2c_bus->valid) { + connector->polled =DRM_CONNECTOR_POLL_CONNECT | +DRM_CONNECTOR_POLL_DISCONNECT ; + } }else connector->polled =DRM_CONNECTOR_POLL_HPD ;
@@ -1860,7 +1861,6 @@ radeon_add_legacy_connector(struct drm_device *dev, 1);/* no HPD on analog connectors */ radeon_connector->hpd.hpd =RADEON_HPD_NONE ; - connector->polled =DRM_CONNECTOR_POLL_CONNECT ; connector->interlace_allowed = true; connector->doublescan_allowed = true;break ;
@@ -1945,10 +1945,13 @@ radeon_add_legacy_connector(struct drm_device *dev, }if (radeon_connector->hpd.hpd ==RADEON_HPD_NONE ) { -if (i2c_bus->valid) - connector->polled =DRM_CONNECTOR_POLL_CONNECT ; +if (i2c_bus->valid) { + connector->polled =DRM_CONNECTOR_POLL_CONNECT | +DRM_CONNECTOR_POLL_DISCONNECT ; + } }else connector->polled =DRM_CONNECTOR_POLL_HPD ; + connector->display_info.subpixel_order = subpixel_order;drm_sysfs_connector_add (connector);if (connector_type ==DRM_MODE_CONNECTOR_LVDS ) {
drivers/gpu/drm/radeon/radeon_ttm.c +2 -2
@@ -248,8 +248,8 @@ static int radeon_move_blit(struct ttm_buffer_object *bo,if (unlikely (r)) {return r; } - old_start = old_mem->start <<PAGE_SHIFT ; - new_start = new_mem->start <<PAGE_SHIFT ; + old_start = (u64 )old_mem->start <<PAGE_SHIFT ; + new_start = (u64 )new_mem->start <<PAGE_SHIFT ;switch (old_mem->mem_type) {case TTM_PL_VRAM :
drivers/hwmon/adt7411.c +4 -1
@@ -31,6 +31,7 @@#define ADT7411_REG_CFG1 0x18#define ADT7411_CFG1_START_MONITOR (1 << 0) +#define ADT7411_CFG1_RESERVED_BIT3 (1 << 3)#define ADT7411_REG_CFG2 0x19#define ADT7411_CFG2_DISABLE_AVG (1 << 5)
@@ -291,8 +292,10 @@ static int __devinit adt7411_probe(struct i2c_client *client,mutex_init (&data->device_lock);mutex_init (&data->update_lock); +/* According to the datasheet, we must only write 1 to bit 3 */ ret =adt7411_modify_bit (client,ADT7411_REG_CFG1 , -ADT7411_CFG1_START_MONITOR ,1 ); +ADT7411_CFG1_RESERVED_BIT3 + |ADT7411_CFG1_START_MONITOR ,1 );if (ret <0 ) goto exit_free;
drivers/i2c/busses/i2c-eg20t.c +11 -7
@@ -893,13 +893,6 @@ static int __devinit pch_i2c_probe(struct pci_dev *pdev,/* Set the number of I2C channel instance */ adap_info->ch_num = id->driver_data; - ret =request_irq (pdev->irq, pch_i2c_handler,IRQF_SHARED , -KBUILD_MODNAME , adap_info); -if (ret) { -pch_pci_err (pdev,"request_irq FAILED\n" ); - goto err_request_irq; - } -for (i =0 ; i < adap_info->ch_num; i++) { pch_adap = &adap_info->pch_data[i].pch_adapter; adap_info->pch_i2c_suspended = false;
@@ -916,6 +909,17 @@ static int __devinit pch_i2c_probe(struct pci_dev *pdev, adap_info->pch_data[i].pch_base_address = base_addr +0x100 * i; pch_adap->dev.parent = &pdev->dev; + } + + ret =request_irq (pdev->irq, pch_i2c_handler,IRQF_SHARED , +KBUILD_MODNAME , adap_info); +if (ret) { +pch_pci_err (pdev,"request_irq FAILED\n" ); + goto err_request_irq; + } + +for (i =0 ; i < adap_info->ch_num; i++) { + pch_adap = &adap_info->pch_data[i].pch_adapter;pch_i2c_init (&adap_info->pch_data[i]); ret =i2c_add_adapter (pch_adap);
drivers/infiniband/core/multicast.c +2 -11
@@ -106,7 +106,6 @@ struct mcast_group {atomic_t refcount;enum mcast_group_state state;struct ib_sa_query *query; -int query_id;u16 pkey_index;u8 leave_state;int retries;
@@ -339,11 +338,7 @@ static int send_join(struct mcast_group *group, struct mcast_member *member) member->multicast.comp_mask,3000 ,GFP_KERNEL , join_handler, group, &group->query); -if (ret >=0 ) { - group->query_id = ret; - ret =0 ; - } -return ret; +return (ret >0 ) ?0 : ret; }static int send_leave (struct mcast_group *group,u8 leave_state)
@@ -363,11 +358,7 @@ static int send_leave(struct mcast_group *group, u8 leave_state)IB_SA_MCMEMBER_REC_JOIN_STATE ,3000 ,GFP_KERNEL , leave_handler, group, &group->query); -if (ret >=0 ) { - group->query_id = ret; - ret =0 ; - } -return ret; +return (ret >0 ) ?0 : ret; } static void join_group(struct mcast_group *group, struct mcast_member *member,
drivers/infiniband/ulp/ipoib/ipoib.h +1 -0
@@ -434,6 +434,7 @@ void ipoib_send(struct net_device *dev, struct sk_buff *skb, struct ipoib_ah *address, u32 qpn);void ipoib_reap_ah (struct work_struct *work); +struct ipoib_path *__path_find (struct net_device *dev,void *gid);void ipoib_mark_paths_invalid (struct net_device *dev);void ipoib_flush_paths (struct net_device *dev);struct ipoib_dev_priv *ipoib_intf_alloc (const char *format);
drivers/infiniband/ulp/ipoib/ipoib_cm.c +16 -0
@@ -1288,6 +1288,8 @@ void ipoib_cm_destroy_tx(struct ipoib_cm_tx *tx) } } +#define QPN_AND_OPTIONS_OFFSET 4 +static void ipoib_cm_tx_start (struct work_struct *work) { struct ipoib_dev_priv *priv = container_of(work, struct ipoib_dev_priv,
@@ -1296,6 +1298,7 @@ static void ipoib_cm_tx_start(struct work_struct *work)struct ipoib_neigh *neigh;struct ipoib_cm_tx *p;unsigned long flags; +struct ipoib_path *path;int ret;struct ib_sa_path_rec pathrec;
@@ -1308,7 +1311,19 @@ static void ipoib_cm_tx_start(struct work_struct *work) p =list_entry (priv->cm.start_list.next,typeof (*p), list);list_del_init (&p->list); neigh = p->neigh; + qpn =IPOIB_QPN (neigh->neighbour->ha); +/* +* As long as the search is with these 2 locks, +* path existence indicates its validity. +*/ + path =__path_find (dev, neigh->neighbour->ha +QPN_AND_OPTIONS_OFFSET ); +if (!path) { +pr_info ("%s ignore not valid path %pI6\n" , + __func__, + neigh->neighbour->ha +QPN_AND_OPTIONS_OFFSET ); + goto free_neigh; + }memcpy (&pathrec, &p->path->pathrec,sizeof pathrec);spin_unlock_irqrestore (&priv->lock, flags);
@@ -1320,6 +1335,7 @@ static void ipoib_cm_tx_start(struct work_struct *work)spin_lock_irqsave (&priv->lock, flags);if (ret) { +free_neigh: neigh = p->neigh;if (neigh) { neigh->cm =NULL ;
drivers/infiniband/ulp/ipoib/ipoib_ib.c +9 -0
@@ -973,8 +973,17 @@ static void __ipoib_ib_dev_flush(struct ipoib_dev_priv *priv, }if (level ==IPOIB_FLUSH_LIGHT ) { +int oper_up;ipoib_mark_paths_invalid (dev); +/* Set IPoIB operation as down to prevent races between: +* the flush flow which leaves MCG and on the fly joins +* which can happen during that time. mcast restart task +* should deal with join requests we missed. +*/ + oper_up =test_and_clear_bit (IPOIB_FLAG_OPER_UP , &priv->flags);ipoib_mcast_dev_flush (dev); +if (oper_up) +set_bit (IPOIB_FLAG_OPER_UP , &priv->flags); }if (level >=IPOIB_FLUSH_NORMAL )
drivers/infiniband/ulp/ipoib/ipoib_main.c +1 -1
@@ -208,7 +208,7 @@ static int ipoib_change_mtu(struct net_device *dev, int new_mtu)return 0 ; } -static struct ipoib_path *__path_find (struct net_device *dev,void *gid) +struct ipoib_path *__path_find (struct net_device *dev,void *gid) {struct ipoib_dev_priv *priv =netdev_priv (dev);struct rb_node *n = priv->path_tree.rb_node;
drivers/input/joystick/xpad.c +3 -0
@@ -825,6 +825,9 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *idstruct usb_endpoint_descriptor *ep_irq_in;int i, error; +if (intf->cur_altsetting->desc.bNumEndpoints !=2 ) +return -ENODEV ; +for (i =0 ; xpad_device[i].idVendor; i++) {if ((le16_to_cpu (udev->descriptor.idVendor) == xpad_device[i].idVendor) && (le16_to_cpu (udev->descriptor.idProduct) == xpad_device[i].idProduct))
drivers/input/serio/i8042.c +2 -15
@@ -1223,6 +1223,7 @@ static int __init i8042_create_kbd_port(void) serio->start = i8042_start; serio->stop = i8042_stop; serio->close = i8042_port_close; + serio->ps2_cmd_mutex = &i8042_mutex; serio->port_data = port; serio->dev.parent = &i8042_platform_device->dev;strlcpy (serio->name,"i8042 KBD port" ,sizeof (serio->name));
@@ -1248,6 +1249,7 @@ static int __init i8042_create_aux_port(int idx) serio->write = i8042_aux_write; serio->start = i8042_start; serio->stop = i8042_stop; + serio->ps2_cmd_mutex = &i8042_mutex; serio->port_data = port; serio->dev.parent = &i8042_platform_device->dev;if (idx <0 ) {
@@ -1310,21 +1312,6 @@ static void __devexit i8042_unregister_ports(void) } } -/* -* Checks whether port belongs to i8042 controller. -*/ -bool i8042_check_port_owner (const struct serio *port) -{ -int i; - -for (i =0 ; i <I8042_NUM_PORTS ; i++) -if (i8042_ports[i].serio == port) -return true; - -return false; -} -EXPORT_SYMBOL (i8042_check_port_owner); -static void i8042_free_irqs (void ) {if (i8042_aux_irq_registered)
drivers/input/serio/libps2.c +4 -6
@@ -57,19 +57,17 @@ EXPORT_SYMBOL(ps2_sendbyte);void ps2_begin_command (struct ps2dev *ps2dev) { -mutex_lock (&ps2dev->cmd_mutex); +struct mutex *m = ps2dev->serio->ps2_cmd_mutex ?: &ps2dev->cmd_mutex; -if (i8042_check_port_owner (ps2dev->serio)) -i8042_lock_chip (); +mutex_lock (m); }EXPORT_SYMBOL (ps2_begin_command);void ps2_end_command (struct ps2dev *ps2dev) { -if (i8042_check_port_owner (ps2dev->serio)) -i8042_unlock_chip (); +struct mutex *m = ps2dev->serio->ps2_cmd_mutex ?: &ps2dev->cmd_mutex; -mutex_unlock (&ps2dev->cmd_mutex); +mutex_unlock (m); }EXPORT_SYMBOL (ps2_end_command);
drivers/md/dm-flakey.c +15 -8
@@ -279,10 +279,16 @@ static int flakey_map(struct dm_target *ti, struct bio *bio, map_context->ll =1 ;/* -* Map reads as normal. +* Map reads as normal only if corrupt_bio_byte set. */ -if (bio_data_dir (bio) ==READ ) - goto map_bio; +if (bio_data_dir (bio) ==READ ) { +/* If flags were specified, only corrupt those that match. */ +if (fc->corrupt_bio_byte && (fc->corrupt_bio_rw ==READ ) && +all_corrupt_bio_flags_match (bio, fc)) + goto map_bio; +else +return -EIO ; + }/* * Drop writes?
@@ -321,12 +327,13 @@ static int flakey_end_io(struct dm_target *ti, struct bio *bio,/* * Corrupt successful READs while in down state. -* If flags were specified, only corrupt those that match. */ -if (fc->corrupt_bio_byte && !error && bio_submitted_while_down && - (bio_data_dir (bio) ==READ ) && (fc->corrupt_bio_rw ==READ ) && -all_corrupt_bio_flags_match (bio, fc)) -corrupt_bio_data (bio, fc); +if (!error && bio_submitted_while_down && (bio_data_dir (bio) ==READ )) { +if (fc->corrupt_bio_byte) +corrupt_bio_data (bio, fc); +else +return -EIO ; + }return error; }
drivers/media/video/usbvision/usbvision-video.c +0 -7
@@ -1502,13 +1502,6 @@ static int __devinit usbvision_probe(struct usb_interface *intf,printk (KERN_INFO "%s: %s found\n" , __func__, usbvision_device_data[model].model_string); -/* -* this is a security check. -* an exploit using an incorrect bInterfaceNumber is known -*/ -if (ifnum >=USB_MAXINTERFACES || !dev->actconfig->interface[ifnum]) -return -ENODEV ; -if (usbvision_device_data[model].interface >=0 ) interface = &dev->actconfig->interface[usbvision_device_data[model].interface]->altsetting[0 ];else if (ifnum < dev->actconfig->desc.bNumInterfaces)
drivers/mtd/maps/pmcmsp-flash.c +3 -3
@@ -75,15 +75,15 @@ static int __init init_msp_flash(void)printk (KERN_NOTICE "Found %d PMC flash devices\n" , fcnt); - msp_flash =kmalloc (fcnt *sizeof (struct map_info *),GFP_KERNEL ); + msp_flash =kcalloc (fcnt,sizeof (*msp_flash),GFP_KERNEL );if (!msp_flash)return -ENOMEM ; - msp_parts =kmalloc (fcnt *sizeof (struct mtd_partition *),GFP_KERNEL ); + msp_parts =kcalloc (fcnt,sizeof (*msp_parts),GFP_KERNEL );if (!msp_parts) goto free_msp_flash; - msp_maps =kcalloc (fcnt,sizeof (struct mtd_info ),GFP_KERNEL ); + msp_maps =kcalloc (fcnt,sizeof (*msp_maps),GFP_KERNEL );if (!msp_maps) goto free_msp_parts;
drivers/mtd/nand/davinci_nand.c +3 -0
@@ -239,6 +239,9 @@ static void nand_davinci_hwctl_4bit(struct mtd_info *mtd, int mode)unsigned long flags;u32 val; +/* Reset ECC hardware */ +davinci_nand_readl (info,NAND_4BIT_ECC1_OFFSET ); +spin_lock_irqsave (&davinci_nand_lock, flags);/* Start 4-bit ECC calculation for read/write */
drivers/mtd/nand/nand_base.c +1 -1
@@ -2229,7 +2229,7 @@ static int nand_do_write_ops(struct mtd_info *mtd, loff_t to,uint8_t *wbuf = buf;/* Partial page write? */ -if (unlikely (column || writelen < (mtd->writesize -1 ))) { +if (unlikely (column || writelen < mtd->writesize)) { cached =0 ; bytes =min_t (int, bytes - column, (int ) writelen); chip->pagebuf =-1 ;
drivers/mtd/ubi/build.c +4 -1
@@ -974,6 +974,9 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset) goto out_detach; } +/* Make device "available" before it becomes accessible via sysfs */ + ubi_devices[ubi_num] = ubi; + err =uif_init (ubi, &ref);if (err) goto out_detach;
@@ -1017,7 +1020,6 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset)wake_up_process (ubi->bgt_thread);spin_unlock (&ubi->wl_lock); - ubi_devices[ubi_num] = ubi;ubi_notify_all (ubi,UBI_VOLUME_ADDED ,NULL );return ubi_num;
@@ -1028,6 +1030,7 @@ out_uif:ubi_assert (ref);uif_close (ubi); out_detach: + ubi_devices[ubi_num] =NULL ;ubi_wl_close (ubi);free_internal_volumes (ubi);vfree (ubi->vtbl);
drivers/net/can/dev.c +17 -10
@@ -22,6 +22,7 @@#include <linux/slab.h> #include <linux/netdevice.h> #include <linux/if_arp.h> +#include <linux/workqueue.h> #include <linux/can.h> #include <linux/can/dev.h> #include <linux/can/netlink.h>
@@ -361,9 +362,8 @@ EXPORT_SYMBOL_GPL(can_free_echo_skb);/* * CAN device restart for bus-off recovery */ -void can_restart (unsigned long data) +void can_restart (struct net_device *dev) { -struct net_device *dev = (struct net_device *)data;struct can_priv *priv =netdev_priv (dev);struct net_device_stats *stats = &dev->stats;struct sk_buff *skb;
@@ -403,6 +403,14 @@ restart:dev_err (dev->dev.parent,"Error %d during restart" , err); } +static void can_restart_work (struct work_struct *work) +{ +struct delayed_work *dwork =to_delayed_work (work); + struct can_priv *priv = container_of(dwork, struct can_priv, restart_work); + +can_restart (priv->dev); +} +int can_restart_now (struct net_device *dev) {struct can_priv *priv =netdev_priv (dev);
@@ -416,8 +424,8 @@ int can_restart_now(struct net_device *dev)if (priv->state !=CAN_STATE_BUS_OFF )return -EBUSY ; -/* Runs as soon as possible in the timer context */ -mod_timer (&priv->restart_timer, jiffies); +cancel_delayed_work_sync (&priv->restart_work); +can_restart (dev);return 0 ; }
@@ -439,8 +447,8 @@ void can_bus_off(struct net_device *dev) priv->can_stats.bus_off++;if (priv->restart_ms) -mod_timer (&priv->restart_timer, - jiffies + (priv->restart_ms *HZ ) /1000 ); +schedule_delayed_work (&priv->restart_work, +msecs_to_jiffies (priv->restart_ms)); }EXPORT_SYMBOL_GPL (can_bus_off);
@@ -515,6 +523,7 @@ struct net_device *alloc_candev(int sizeof_priv, unsigned int echo_skb_max)return NULL ; priv =netdev_priv (dev); + priv->dev = dev;if (echo_skb_max) { priv->echo_skb_max = echo_skb_max;
@@ -524,7 +533,7 @@ struct net_device *alloc_candev(int sizeof_priv, unsigned int echo_skb_max) priv->state =CAN_STATE_STOPPED ; -init_timer (&priv->restart_timer); +INIT_DELAYED_WORK (&priv->restart_work, can_restart_work);return dev; }
@@ -558,8 +567,6 @@ int open_candev(struct net_device *dev)if (!netif_carrier_ok (dev))netif_carrier_on (dev); -setup_timer (&priv->restart_timer, can_restart, (unsigned long )dev); -return 0 ; }EXPORT_SYMBOL_GPL (open_candev);
@@ -574,7 +581,7 @@ void close_candev(struct net_device *dev) {struct can_priv *priv =netdev_priv (dev); -del_timer_sync (&priv->restart_timer); +cancel_delayed_work_sync (&priv->restart_work);can_flush_echo_skb (dev); }EXPORT_SYMBOL_GPL (close_candev);
drivers/net/ethernet/ethoc.c +5 -5
@@ -976,7 +976,7 @@ static int __devinit ethoc_probe(struct platform_device *pdev)if (!priv->iobase) {dev_err (&pdev->dev,"cannot remap I/O memory space\n" ); ret = -ENXIO ; - goto error; + goto free; }if (netdev->mem_end) {
@@ -985,7 +985,7 @@ static int __devinit ethoc_probe(struct platform_device *pdev)if (!priv->membase) {dev_err (&pdev->dev,"cannot remap memory space\n" ); ret = -ENXIO ; - goto error; + goto free; } }else {/* Allocate buffer memory */
@@ -996,7 +996,7 @@ static int __devinit ethoc_probe(struct platform_device *pdev)dev_err (&pdev->dev,"cannot allocate %dB buffer\n" , buffer_size); ret = -ENOMEM ; - goto error; + goto free; } netdev->mem_end = netdev->mem_start + buffer_size; priv->dma_alloc = buffer_size;
@@ -1007,7 +1007,7 @@ static int __devinit ethoc_probe(struct platform_device *pdev) 128, (netdev->mem_end - netdev->mem_start + 1) / ETHOC_BUFSIZ);if (num_bd <4 ) { ret = -ENODEV ; - goto error; + goto free; }/* num_tx must be a power of two */ priv->num_tx =rounddown_pow_of_two (num_bd >>1 );
@@ -1019,7 +1019,7 @@ static int __devinit ethoc_probe(struct platform_device *pdev) priv->vma =devm_kzalloc (&pdev->dev, num_bd*sizeof (void *),GFP_KERNEL );if (!priv->vma) { ret = -ENOMEM ; - goto error; + goto free; }/* Allow the platform setup code to pass in a MAC address. */
drivers/net/ppp/ppp_generic.c +3 -2
@@ -2275,8 +2275,6 @@ ppp_unregister_channel(struct ppp_channel *chan)spin_lock_bh (&pn->all_channels_lock);list_del (&pch->list);spin_unlock_bh (&pn->all_channels_lock); -put_net (pch->chan_net); - pch->chan_net =NULL ; pch->file.dead =1 ;wake_up_interruptible (&pch->file.rwait);
@@ -2883,6 +2881,9 @@ ppp_disconnect_channel(struct channel *pch)*/ static void ppp_destroy_channel (struct channel *pch) { +put_net (pch->chan_net); + pch->chan_net =NULL ; +atomic_dec (&channel_count);if (!pch->file.dead) {
drivers/net/wireless/brcm80211/brcmsmac/stf.c +1 -1
@@ -86,7 +86,7 @@ void brcms_c_stf_ss_algo_channel_get(struct brcms_c_info *wlc, u16 *ss_algo_channel, u16 chanspec) { - struct tx_power power; + struct tx_power power = { };u8 siso_mcs_id, cdd_mcs_id, stbc_mcs_id;/* Clear previous settings */
drivers/pps/clients/pps_parport.c +1 -1
@@ -194,7 +194,7 @@ static void parport_detach(struct parport *port)struct pps_client_pp *device;/* FIXME: oooh, this is ugly! */ -if (strcmp (pardev->name,KBUILD_MODNAME )) +if (!pardev ||strcmp (pardev->name,KBUILD_MODNAME ))/* not our port */ return ;
drivers/s390/block/dasd.c +9 -1
@@ -1593,9 +1593,18 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm,unsigned long long now;int expires; + cqr = (struct dasd_ccw_req *) intparm;if (IS_ERR (irb)) {switch (PTR_ERR (irb)) {case -EIO : +if (cqr && cqr->status ==DASD_CQR_CLEAR_PENDING ) { + device = (struct dasd_device *) cqr->startdev; + cqr->status =DASD_CQR_CLEARED ; +dasd_device_clear_timer (device); +wake_up (&dasd_flush_wq); +dasd_schedule_device_bh (device); +return ; + }break ;case -ETIMEDOUT : DBF_EVENT_DEVID(DBF_WARNING, cdev, "%s: "
@@ -1611,7 +1620,6 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm, } now =get_clock (); - cqr = (struct dasd_ccw_req *) intparm;/* check for conditions that should be handled immediately */ if (!cqr || !(scsw_dstat(&irb->scsw) == (DEV_STAT_CHN_END | DEV_STAT_DEV_END) &&
drivers/scsi/aacraid/commctrl.c +11 -2
@@ -63,7 +63,7 @@ static int ioctl_send_fib(struct aac_dev * dev, void __user *arg)struct fib *fibptr;struct hw_fib * hw_fib = (struct hw_fib *)0 ;dma_addr_t hw_fib_pa = (dma_addr_t )0LL ; -unsigned size; +unsigned int size, osize;int retval;if (dev->in_reset) {
@@ -87,7 +87,8 @@ static int ioctl_send_fib(struct aac_dev * dev, void __user *arg)* will not overrun the buffer when we copy the memory. Return * an error if we would. */ - size =le16_to_cpu (kfib->header.Size) +sizeof (struct aac_fibhdr ); + osize = size =le16_to_cpu (kfib->header.Size) + +sizeof (struct aac_fibhdr );if (size <le16_to_cpu (kfib->header.SenderSize)) size =le16_to_cpu (kfib->header.SenderSize);if (size > dev->max_fib_size) {
@@ -118,6 +119,14 @@ static int ioctl_send_fib(struct aac_dev * dev, void __user *arg) goto cleanup; } +/* Sanity check the second copy */ +if ((osize !=le16_to_cpu (kfib->header.Size) + +sizeof (struct aac_fibhdr )) + || (size <le16_to_cpu (kfib->header.SenderSize))) { + retval = -EINVAL ; + goto cleanup; + } +if (kfib->header.Command ==cpu_to_le16 (TakeABreakPt)) {aac_adapter_interrupt (dev);/*
drivers/scsi/arcmsr/arcmsr_hba.c +7 -1
@@ -1803,7 +1803,8 @@ static int arcmsr_iop_message_xfer(struct AdapterControlBlock *acb,case ARCMSR_MESSAGE_WRITE_WQBUFFER : {unsigned char *ver_addr; -int32_t my_empty_len, user_len, wqbuf_firstindex, wqbuf_lastindex; +uint32_t user_len; +int32_t my_empty_len, wqbuf_firstindex, wqbuf_lastindex;uint8_t *pQbuffer, *ptmpuserbuffer; ver_addr =kmalloc (1032 ,GFP_ATOMIC );
@@ -1820,6 +1821,11 @@ static int arcmsr_iop_message_xfer(struct AdapterControlBlock *acb, } ptmpuserbuffer = ver_addr; user_len = pcmdmessagefld->cmdmessage.Length; +if (user_len >1032 ) { + retvalue =ARCMSR_MESSAGE_FAIL ; +kfree (ver_addr); + goto message_out; + }memcpy (ptmpuserbuffer, pcmdmessagefld->messagedatabuffer, user_len); wqbuf_lastindex = acb->wqbuf_lastindex; wqbuf_firstindex = acb->wqbuf_firstindex;
drivers/scsi/megaraid/megaraid_sas_base.c +3 -3
@@ -3508,7 +3508,7 @@ static int megasas_init_fw(struct megasas_instance *instance)/* Find first memory bar */ bar_list =pci_select_bars (instance->pdev,IORESOURCE_MEM ); instance->bar =find_first_bit (&bar_list,sizeof (unsigned long )); -if (pci_request_selected_regions (instance->pdev, instance->bar, +if (pci_request_selected_regions (instance->pdev,1 <<instance->bar,"megasas: LSI" )) {printk (KERN_DEBUG "megasas: IO memory region busy!\n" );return -EBUSY ;
@@ -3661,7 +3661,7 @@ fail_ready_state:iounmap (instance->reg_set); fail_ioremap: -pci_release_selected_regions (instance->pdev, instance->bar); +pci_release_selected_regions (instance->pdev,1 <<instance->bar);return -EINVAL ; }
@@ -3682,7 +3682,7 @@ static void megasas_release_mfi(struct megasas_instance *instance)iounmap (instance->reg_set); -pci_release_selected_regions (instance->pdev, instance->bar); +pci_release_selected_regions (instance->pdev,1 <<instance->bar); }/**
drivers/scsi/megaraid/megaraid_sas_fusion.c +1 -1
@@ -2026,7 +2026,7 @@ megasas_release_fusion(struct megasas_instance *instance)iounmap (instance->reg_set); -pci_release_selected_regions (instance->pdev, instance->bar); +pci_release_selected_regions (instance->pdev,1 <<instance->bar); }/**
drivers/staging/iio/accel/kxsd9.c +2 -0
@@ -163,11 +163,13 @@ static int kxsd9_read_raw(struct iio_dev *indio_dev,if (ret <0 ) goto error_ret; *val = ret; + ret =IIO_VAL_INT ;break ;case (1 <<IIO_CHAN_INFO_SCALE_SHARED ): ret =spi_w8r8 (st->us,KXSD9_READ (KXSD9_REG_CTRL_C ));if (ret <0 ) goto error_ret; + *val =0 ; *val2 = kxsd9_micro_scales[ret &KXSD9_FS_MASK ]; ret =IIO_VAL_INT_PLUS_MICRO ;break ;
drivers/staging/pohmelfs/Kconfig +1 -0
@@ -1,5 +1,6 @@ config POHMELFS tristate "POHMELFS filesystem support" + depends on BROKEN depends on NET select CONNECTOR select CRYPTO
drivers/tty/serial/samsung.c +2 -2
@@ -1237,8 +1237,6 @@ int s3c24xx_serial_probe(struct platform_device *dev,dbg ("s3c24xx_serial_probe(%p, %p) %d\n" , dev, info, probe_index); ourport = &s3c24xx_serial_ports[probe_index]; - probe_index++; -dbg ("%s: initialising port %p...\n" , __func__, ourport); ret =s3c24xx_serial_init_port (ourport, info, dev);
@@ -1275,6 +1273,8 @@ int __devexit s3c24xx_serial_remove(struct platform_device *dev)uart_remove_one_port (&s3c24xx_uart_drv, port); } + probe_index++; +return 0 ; }
drivers/tty/vt/keyboard.c +9 -21
@@ -386,34 +386,22 @@ static void to_utf8(struct vc_data *vc, uint c)*/ void compute_shiftstate (void ) { -unsigned int i, j, k, sym, val; +unsigned int k, sym, val; shift_state =0 ;memset (shift_down,0 ,sizeof (shift_down)); -for (i =0 ; i <ARRAY_SIZE (key_down); i++) { - -if (!key_down[i]) +for_each_set_bit (k, key_down,min (NR_KEYS ,KEY_CNT )) { + sym =U (key_maps[0 ][k]); +if (KTYP (sym) !=KT_SHIFT &&KTYP (sym) !=KT_SLOCK )continue ; - k = i *BITS_PER_LONG ; - -for (j =0 ; j <BITS_PER_LONG ; j++, k++) { - -if (!test_bit (k, key_down)) -continue ; + val =KVAL (sym); +if (val ==KVAL (K_CAPSSHIFT )) + val =KVAL (K_SHIFT ); - sym =U (key_maps[0 ][k]); -if (KTYP (sym) !=KT_SHIFT &&KTYP (sym) !=KT_SLOCK ) -continue ; - - val =KVAL (sym); -if (val ==KVAL (K_CAPSSHIFT )) - val =KVAL (K_SHIFT ); - - shift_down[val]++; - shift_state |= (1 << val); - } + shift_down[val]++; + shift_state |=BIT (val); } }
drivers/usb/class/cdc-acm.c +2 -3
@@ -1156,7 +1156,6 @@ made_compressed_probe:spin_lock_init (&acm->write_lock);spin_lock_init (&acm->read_lock);mutex_init (&acm->mutex); - acm->rx_endpoint =usb_rcvbulkpipe (usb_dev, epread->bEndpointAddress); acm->is_int_ep =usb_endpoint_xfer_int (epread);if (acm->is_int_ep) acm->bInterval = epread->bInterval;
@@ -1205,14 +1204,14 @@ made_compressed_probe: urb->transfer_dma = rb->dma;if (acm->is_int_ep) {usb_fill_int_urb (urb, acm->dev, - acm->rx_endpoint, +usb_rcvintpipe (usb_dev, epread->bEndpointAddress), rb->base, acm->readsize, acm_read_bulk_callback, rb, acm->bInterval); }else {usb_fill_bulk_urb (urb, acm->dev, - acm->rx_endpoint, +usb_rcvbulkpipe (usb_dev, epread->bEndpointAddress), rb->base, acm->readsize, acm_read_bulk_callback, rb);
drivers/usb/class/cdc-acm.h +0 -1
@@ -95,7 +95,6 @@ struct acm {struct urb *read_urbs[ACM_NR ];struct acm_rb read_buffers[ACM_NR ];int rx_buflimit; -int rx_endpoint;spinlock_t read_lock;int write_used;/* number of non-empty write buffers */ int transmitting;
drivers/usb/core/config.c +79 -14
147 lines not on this page · raw message
drivers/usb/core/devio.c +11 -5
@@ -1281,11 +1281,17 @@ static int proc_do_submiturb(struct dev_state *ps, struct usbdevfs_urb *uurb, as->urb->setup_packet = (unsigned char *)dr; as->urb->start_frame = uurb->start_frame; as->urb->number_of_packets = uurb->number_of_packets; -if (uurb->type ==USBDEVFS_URB_TYPE_ISO || - ps->dev->speed ==USB_SPEED_HIGH ) - as->urb->interval =1 <<min (15 , ep->desc.bInterval -1 ); -else - as->urb->interval = ep->desc.bInterval; + +if (ep->desc.bInterval) { +if (uurb->type ==USBDEVFS_URB_TYPE_ISO || + ps->dev->speed ==USB_SPEED_HIGH || + ps->dev->speed >=USB_SPEED_SUPER ) + as->urb->interval =1 << +min (15 , ep->desc.bInterval -1 ); +else + as->urb->interval = ep->desc.bInterval; + } + as->urb->context = as; as->urb->complete = async_completed;for (totlen = u =0 ; u < uurb->number_of_packets; u++) {
drivers/usb/gadget/fsl_qe_udc.c +2 -5
@@ -1883,11 +1883,8 @@ static int qe_get_frame(struct usb_gadget *gadget) tmp =in_be16 (&udc_controller->usb_param->frame_n);if (tmp &0x8000 ) - tmp = tmp &0x07ff ; -else - tmp = -EINVAL ; - -return (int )tmp; +return tmp &0x07ff ; +return -EINVAL ; }/* Tries to wake up the host connected to this gadget
drivers/usb/host/xhci-hub.c +3 -0
@@ -278,6 +278,9 @@ static int xhci_stop_device(struct xhci_hcd *xhci, int slot_id, int suspend) ret =0 ; virt_dev = xhci->devs[slot_id]; +if (!virt_dev) +return -ENODEV ; + cmd =xhci_alloc_command (xhci, false, true,GFP_NOIO );if (!cmd) {xhci_dbg (xhci,"Couldn't allocate command structure.\n" );
drivers/usb/host/xhci-pci.c +2 -1
@@ -252,12 +252,13 @@ static void xhci_pci_remove(struct pci_dev *dev)usb_remove_hcd (xhci->shared_hcd);usb_put_hcd (xhci->shared_hcd); } -usb_hcd_pci_remove (dev);/* Workaround for spurious wakeups at shutdown with HSW */ if (xhci->quirks &XHCI_SPURIOUS_WAKEUP )pci_set_power_state (dev, PCI_D3hot); +usb_hcd_pci_remove (dev); +kfree (xhci); }
drivers/usb/renesas_usbhs/fifo.c +14 -4
@@ -760,15 +760,22 @@ static void usbhsf_dma_prepare_tasklet(unsigned long data) {struct usbhs_pkt *pkt = (struct usbhs_pkt *)data;struct usbhs_pipe *pipe = pkt->pipe; -struct usbhs_fifo *fifo =usbhs_pipe_to_fifo (pipe); +struct usbhs_fifo *fifo;struct usbhs_priv *priv =usbhs_pipe_to_priv (pipe);struct scatterlist sg;struct dma_async_tx_descriptor *desc; -struct dma_chan *chan =usbhsf_dma_chan_get (fifo, pkt); +struct dma_chan *chan;struct device *dev =usbhs_priv_to_dev (priv);enum dma_data_direction dir;dma_cookie_t cookie; +unsigned long flags; + +usbhs_lock (priv, flags); + fifo =usbhs_pipe_to_fifo (pipe); +if (!fifo) + goto xfer_work_end; + chan =usbhsf_dma_chan_get (fifo, pkt); dir =usbhs_pipe_is_dir_in (pipe) ?DMA_FROM_DEVICE :DMA_TO_DEVICE ;sg_init_table (&sg,1 );
@@ -781,7 +788,7 @@ static void usbhsf_dma_prepare_tasklet(unsigned long data)DMA_PREP_INTERRUPT | DMA_CTRL_ACK);if (!desc) -return ; + goto xfer_work_end; desc->callback = usbhsf_dma_complete; desc->callback_param = pipe;
@@ -789,7 +796,7 @@ static void usbhsf_dma_prepare_tasklet(unsigned long data) cookie = desc->tx_submit (desc);if (cookie <0 ) {dev_err (dev,"Failed to submit dma descriptor\n" ); -return ; + goto xfer_work_end; } dev_dbg(dev, " %s %d (%d/ %d)\n",
@@ -797,6 +804,9 @@ static void usbhsf_dma_prepare_tasklet(unsigned long data)usbhsf_dma_start (pipe, fifo);dma_async_issue_pending (chan); + +xfer_work_end: +usbhs_unlock (priv, flags); }/*
drivers/usb/renesas_usbhs/mod_gadget.c +8 -1
@@ -472,6 +472,9 @@ static int usbhsg_ep_enable(struct usb_ep *ep,struct usbhs_priv *priv =usbhsg_gpriv_to_priv (gpriv);struct usbhs_pipe *pipe;int ret = -EIO ; +unsigned long flags; + +usbhs_lock (priv, flags);/* * if it already have pipe,
@@ -480,7 +483,8 @@ static int usbhsg_ep_enable(struct usb_ep *ep,if (uep->pipe) {usbhs_pipe_clear (uep->pipe);usbhs_pipe_sequence_data0 (uep->pipe); -return 0 ; + ret =0 ; + goto usbhsg_ep_enable_end; } pipe = usbhs_pipe_malloc(priv,
@@ -508,6 +512,9 @@ static int usbhsg_ep_enable(struct usb_ep *ep, ret =0 ; } +usbhsg_ep_enable_end: +usbhs_unlock (priv, flags); +return ret; }
drivers/usb/serial/ftdi_sio.c +3 -0
@@ -672,6 +672,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_ELV_TFD128_PID) }, { USB_DEVICE(FTDI_VID, FTDI_ELV_FM3RX_PID) }, { USB_DEVICE(FTDI_VID, FTDI_ELV_WS777_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_PALMSENS_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_IVIUM_XSTAT_PID) }, { USB_DEVICE(FTDI_VID, LINX_SDMUSBQSS_PID) }, { USB_DEVICE(FTDI_VID, LINX_MASTERDEVEL2_PID) }, { USB_DEVICE(FTDI_VID, LINX_FUTURE_0_PID) },
@@ -1030,6 +1032,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(ICPDAS_VID, ICPDAS_I7560U_PID) }, { USB_DEVICE(ICPDAS_VID, ICPDAS_I7561U_PID) }, { USB_DEVICE(ICPDAS_VID, ICPDAS_I7563U_PID) }, + { USB_DEVICE(WICED_VID, WICED_USB20706V2_PID) }, { }, /* Optional parameter entry */ { } /* Terminating entry */ };
drivers/usb/serial/ftdi_sio_ids.h +12 -0
@@ -406,6 +406,12 @@#define FTDI_4N_GALAXY_DE_3_PID 0xF3C2/* +* Ivium Technologies product IDs +*/ +#define FTDI_PALMSENS_PID 0xf440 +#define FTDI_IVIUM_XSTAT_PID 0xf441 + +/* * Linx Technologies product ids */ #define LINX_SDMUSBQSS_PID 0xF448/* Linx SDM-USB-QS-S */
@@ -667,6 +673,12 @@#define INTREPID_NEOVI_PID 0x0701/* +* WICED USB UART +*/ +#define WICED_VID 0x0A5C +#define WICED_USB20706V2_PID 0x6422 + +/* * Definitions for ID TECH (www.idt-net.com) devices */ #define IDTECH_VID 0x0ACD/* ID TECH Vendor ID */
drivers/usb/serial/mos7720.c +1 -1
@@ -1320,7 +1320,7 @@ static int mos7720_write(struct tty_struct *tty, struct usb_serial_port *port,if (urb->transfer_buffer ==NULL ) { urb->transfer_buffer =kmalloc (URB_TRANSFER_BUFFER_SIZE , -GFP_KERNEL ); +GFP_ATOMIC );if (urb->transfer_buffer ==NULL ) {dev_err (&port->dev,"%s no more kernel memory...\n" , __func__);
drivers/usb/serial/mos7840.c +2 -2
@@ -1524,8 +1524,8 @@ static int mos7840_write(struct tty_struct *tty, struct usb_serial_port *port, }if (urb->transfer_buffer ==NULL ) { - urb->transfer_buffer = -kmalloc (URB_TRANSFER_BUFFER_SIZE ,GFP_KERNEL ); + urb->transfer_buffer =kmalloc (URB_TRANSFER_BUFFER_SIZE , +GFP_ATOMIC );if (urb->transfer_buffer ==NULL ) { dev_err(&port->dev, "%s no more kernel memory...\n",
drivers/usb/serial/option.c +13 -0
@@ -273,6 +273,7 @@ static void option_instat_callback(struct urb *urb);#define TELIT_PRODUCT_LE922_USBCFG3 0x1043#define TELIT_PRODUCT_LE920 0x1200#define TELIT_PRODUCT_LE910 0x1201 +#define TELIT_PRODUCT_LE910_USBCFG4 0x1206/* ZTE PRODUCTS */ #define ZTE_VENDOR_ID 0x19d2
@@ -511,6 +512,12 @@ static void option_instat_callback(struct urb *urb);#define VIATELECOM_VENDOR_ID 0x15eb#define VIATELECOM_PRODUCT_CDS7 0x0001 +/* WeTelecom products */ +#define WETELECOM_VENDOR_ID 0x22de +#define WETELECOM_PRODUCT_WMD200 0x6801 +#define WETELECOM_PRODUCT_6802 0x6802 +#define WETELECOM_PRODUCT_WMD300 0x6803 +/* some devices interfaces need special handling due to a number of reasons */ enum option_blacklist_reason {OPTION_BLACKLIST_NONE =0 ,
@@ -1193,6 +1200,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = (kernel_ulong_t)&telit_le922_blacklist_usbcfg3 }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE910), .driver_info = (kernel_ulong_t)&telit_le910_blacklist }, + { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE910_USBCFG4), + .driver_info = (kernel_ulong_t)&telit_le922_blacklist_usbcfg3 }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE920), .driver_info = (kernel_ulong_t)&telit_le920_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_MF622, 0xff, 0xff, 0xff) }, /* ZTE WCDMA products */
@@ -1942,8 +1951,12 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x00, 0x00) }, { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ + { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/A3 */ { USB_DEVICE(INOVIA_VENDOR_ID, INOVIA_SEW858) }, { USB_DEVICE(VIATELECOM_VENDOR_ID, VIATELECOM_PRODUCT_CDS7) }, + { USB_DEVICE_AND_INTERFACE_INFO(WETELECOM_VENDOR_ID, WETELECOM_PRODUCT_WMD200, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(WETELECOM_VENDOR_ID, WETELECOM_PRODUCT_6802, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(WETELECOM_VENDOR_ID, WETELECOM_PRODUCT_WMD300, 0xff, 0xff, 0xff) }, { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/virtio/virtio_balloon.c +2 -0
@@ -142,6 +142,8 @@ static void leak_balloon(struct virtio_balloon *vb, size_t num)/* We can only do one array worth at a time. */ num =min (num,ARRAY_SIZE (vb->pfns)); +/* We can't release more pages than taken */ + num =min (num, (size_t )vb->num_pages);for (vb->num_pfns =0 ; vb->num_pfns < num; vb->num_pfns++) { page = list_first_entry(&vb->pages, struct page, lru);list_del (&page->lru);
drivers/xen/xenfs/xenbus.c +8 -6
@@ -310,11 +310,18 @@ static int xenbus_write_transaction(unsigned msg_type, rc = -ENOMEM ; goto out; } + }else if (msg_type ==XS_TRANSACTION_END ) { +list_for_each_entry (trans, &u->transactions, list) +if (trans->handle.id == u->u.msg.tx_id) +break ; +if (&trans->list == &u->transactions) +return -ESRCH ; } reply =xenbus_dev_request_and_reply (&u->u.msg);if (IS_ERR (reply)) { -kfree (trans); +if (msg_type ==XS_TRANSACTION_START ) +kfree (trans); rc =PTR_ERR (reply); goto out; }
@@ -324,12 +331,7 @@ static int xenbus_write_transaction(unsigned msg_type,list_add (&trans->list, &u->transactions); }else if (msg_type ==XS_TRANSACTION_END ) { -list_for_each_entry (trans, &u->transactions, list) -if (trans->handle.id == u->u.msg.tx_id) -break ; -BUG_ON (&trans->list == &u->transactions);list_del (&trans->list); -kfree (trans); }
fs/9p/acl.c +17 -23
@@ -319,32 +319,26 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name,case ACL_TYPE_ACCESS : name =POSIX_ACL_XATTR_ACCESS ;if (acl) { -umode_t mode = inode->i_mode; - retval =posix_acl_equiv_mode (acl, &mode); -if (retval <0 ) +struct iattr iattr; + + retval =posix_acl_update_mode (inode, &iattr.ia_mode, &acl); +if (retval) goto err_out; -else { -struct iattr iattr; -if (retval ==0 ) { -/* -* ACL can be represented -* by the mode bits. So don't -* update ACL. -*/ - acl =NULL ; - value =NULL ; - size =0 ; - } -/* Updte the mode bits */ - iattr.ia_mode = ((mode &S_IALLUGO ) | - (inode->i_mode & ~S_IALLUGO )); - iattr.ia_valid =ATTR_MODE ; -/* FIXME should we update ctime ? -* What is the following setxattr update the -* mode ? +if (!acl) { +/* +* ACL can be represented +* by the mode bits. So don't +* update ACL. */ -v9fs_vfs_setattr_dotl (dentry, &iattr); + value =NULL ; + size =0 ; } + iattr.ia_valid =ATTR_MODE ; +/* FIXME should we update ctime ? +* What is the following setxattr update the +* mode ? +*/ +v9fs_vfs_setattr_dotl (dentry, &iattr); }break ;case ACL_TYPE_DEFAULT :
fs/9p/vfs_inode.c +1 -1
@@ -1068,7 +1068,7 @@ static int v9fs_vfs_setattr(struct dentry *dentry, struct iattr *iattr)struct p9_wstat wstat;P9_DPRINTK (P9_DEBUG_VFS ,"\n" ); - retval =inode_change_ok (dentry->d_inode, iattr); + retval =setattr_prepare (dentry, iattr);if (retval)return retval;
fs/9p/vfs_inode_dotl.c +1 -1
@@ -538,7 +538,7 @@ int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr)P9_DPRINTK (P9_DEBUG_VFS ,"\n" ); - retval =inode_change_ok (dentry->d_inode, iattr); + retval =setattr_prepare (dentry, iattr);if (retval)return retval;
fs/adfs/inode.c +1 -1
@@ -298,7 +298,7 @@ adfs_notify_change(struct dentry *dentry, struct iattr *attr)unsigned int ia_valid = attr->ia_valid;int error; - error =inode_change_ok (inode, attr); + error =setattr_prepare (dentry, attr);/* * we can't change the UID or GID of any file -
fs/affs/inode.c +1 -1
@@ -222,7 +222,7 @@ affs_notify_change(struct dentry *dentry, struct iattr *attr)pr_debug ("AFFS: notify_change(%lu,0x%x)\n" ,inode->i_ino,attr->ia_valid); - error =inode_change_ok (inode,attr); + error =setattr_prepare (dentry, attr);if (error) goto out;
fs/attr.c +23 -12
@@ -16,19 +16,22 @@#include <linux/evm.h> /** -* inode_change_ok - check if attribute changes to an inode are allowed -* @inode: inode to check +* setattr_prepare - check if attribute changes to a dentry are allowed +* @dentry: dentry to check * @attr: attributes to change * * Check if we are allowed to change the attributes contained in @attr -* in the given inode. This includes the normal unix access permission -* checks, as well as checks for rlimits and others. +* in the given dentry. This includes the normal unix access permission +* checks, as well as checks for rlimits and others. The function also clears +* SGID bit from mode if user is not allowed to set it. Also file capabilities +* and IMA extended attributes are cleared if ATTR_KILL_PRIV is set. * * Should be called as the first thing in ->setattr implementations, * possibly after taking additional locks. */ -int inode_change_ok (const struct inode *inode,struct iattr *attr) +int setattr_prepare (struct dentry *dentry,struct iattr *attr) { +struct inode *inode = dentry->d_inode;unsigned int ia_valid = attr->ia_valid;/*
@@ -43,7 +46,7 @@ int inode_change_ok(const struct inode *inode, struct iattr *attr)/* If force is set do it anyway. */ if (ia_valid &ATTR_FORCE ) -return 0 ; + goto kill_priv;/* Make sure a caller can chown. */ if ((ia_valid & ATTR_UID) &&
@@ -74,9 +77,19 @@ int inode_change_ok(const struct inode *inode, struct iattr *attr)return -EPERM ; } +kill_priv: +/* User has permission for the change */ +if (ia_valid &ATTR_KILL_PRIV ) { +int error; + + error =security_inode_killpriv (dentry); +if (error) +return error; + } +return 0 ; } -EXPORT_SYMBOL (inode_change_ok); +EXPORT_SYMBOL (setattr_prepare);/** * inode_newsize_ok - may this inode be truncated to a given size
@@ -196,13 +209,11 @@ int notify_change(struct dentry * dentry, struct iattr * attr)if (!(ia_valid &ATTR_MTIME_SET )) attr->ia_mtime = now;if (ia_valid &ATTR_KILL_PRIV ) { - attr->ia_valid &= ~ATTR_KILL_PRIV ; - ia_valid &= ~ATTR_KILL_PRIV ; error =security_inode_need_killpriv (dentry); -if (error >0 ) - error =security_inode_killpriv (dentry); -if (error) +if (error <0 )return error; +if (error ==0 ) + ia_valid = attr->ia_valid &= ~ATTR_KILL_PRIV ; }/*
fs/btrfs/acl.c +2 -2
@@ -118,8 +118,8 @@ static int btrfs_set_acl(struct btrfs_trans_handle *trans,case ACL_TYPE_ACCESS : name =POSIX_ACL_XATTR_ACCESS ;if (acl) { - ret =posix_acl_equiv_mode (acl, &inode->i_mode); -if (ret <0 ) + ret =posix_acl_update_mode (inode, &inode->i_mode, &acl); +if (ret)return ret; } ret =0 ;
fs/btrfs/inode.c +1 -1
@@ -3533,7 +3533,7 @@ static int btrfs_setattr(struct dentry *dentry, struct iattr *attr)if (btrfs_root_readonly (root))return -EROFS ; - err =inode_change_ok (inode, attr); + err =setattr_prepare (dentry, attr);if (err)return err;
fs/btrfs/ioctl.c +12 -0
@@ -1302,6 +1302,9 @@ static noinline int btrfs_ioctl_snap_create_transid(struct file *file,int namelen;int ret =0 ; +if (!S_ISDIR (file->f_dentry->d_inode->i_mode)) +return -ENOTDIR ; +if (root->fs_info->sb->s_flags &MS_RDONLY )return -EROFS ;
@@ -1350,6 +1353,9 @@ static noinline int btrfs_ioctl_snap_create(struct file *file,struct btrfs_ioctl_vol_args *vol_args;int ret; +if (!S_ISDIR (file->f_dentry->d_inode->i_mode)) +return -ENOTDIR ; + vol_args =memdup_user (arg,sizeof (*vol_args));if (IS_ERR (vol_args))return PTR_ERR (vol_args);
@@ -1372,6 +1378,9 @@ static noinline int btrfs_ioctl_snap_create_v2(struct file *file,u64 *ptr =NULL ;bool readonly = false; +if (!S_ISDIR (file->f_dentry->d_inode->i_mode)) +return -ENOTDIR ; + vol_args =memdup_user (arg,sizeof (*vol_args));if (IS_ERR (vol_args))return PTR_ERR (vol_args);
@@ -1848,6 +1857,9 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file,int ret;int err =0 ; +if (!S_ISDIR (dir->i_mode)) +return -ENOTDIR ; + vol_args =memdup_user (arg,sizeof (*vol_args));if (IS_ERR (vol_args))return PTR_ERR (vol_args);
fs/ceph/file.c +6 -7
@@ -793,17 +793,15 @@ out:static loff_t ceph_llseek (struct file *file,loff_t offset,int origin) {struct inode *inode = file->f_mapping->host; -int ret; +loff_t ret;mutex_lock (&inode->i_mutex);__ceph_do_pending_vmtruncate (inode);if (origin ==SEEK_END || origin ==SEEK_DATA || origin ==SEEK_HOLE ) { ret =ceph_do_getattr (inode,CEPH_STAT_CAP_SIZE ); -if (ret <0 ) { - offset = ret; +if (ret <0 ) goto out; - } }switch (origin) {
@@ -818,7 +816,7 @@ static loff_t ceph_llseek(struct file *file, loff_t offset, int origin)* write() or lseek() might have altered it */ if (offset ==0 ) { - offset = file->f_pos; + ret = file->f_pos; goto out; } offset += file->f_pos;
@@ -839,7 +837,7 @@ static loff_t ceph_llseek(struct file *file, loff_t offset, int origin) }if (offset <0 || offset > inode->i_sb->s_maxbytes) { - offset = -EINVAL ; + ret = -EINVAL ; goto out; }
@@ -848,10 +846,11 @@ static loff_t ceph_llseek(struct file *file, loff_t offset, int origin) file->f_pos = offset; file->f_version =0 ; } + ret = offset; out:mutex_unlock (&inode->i_mutex); -return offset; +return ret; }const struct file_operations ceph_file_fops = {
fs/ceph/inode.c +1 -1
@@ -1541,7 +1541,7 @@ int ceph_setattr(struct dentry *dentry, struct iattr *attr)__ceph_do_pending_vmtruncate (inode); - err =inode_change_ok (inode, attr); + err =setattr_prepare (dentry, attr);if (err !=0 )return err;
fs/cifs/inode.c +2 -2
@@ -1948,7 +1948,7 @@ cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs)if (cifs_sb->mnt_cifs_flags &CIFS_MOUNT_NO_PERM ) attrs->ia_valid |=ATTR_FORCE ; - rc =inode_change_ok (inode, attrs); + rc =setattr_prepare (direntry, attrs);if (rc <0 ) goto out;
@@ -2089,7 +2089,7 @@ cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs)if (cifs_sb->mnt_cifs_flags &CIFS_MOUNT_NO_PERM ) attrs->ia_valid |=ATTR_FORCE ; - rc =inode_change_ok (inode, attrs); + rc =setattr_prepare (direntry, attrs);if (rc <0 ) {FreeXid (xid);return rc;
fs/ecryptfs/inode.c +1 -1
@@ -1026,7 +1026,7 @@ static int ecryptfs_setattr(struct dentry *dentry, struct iattr *ia) }mutex_unlock (&crypt_stat->cs_mutex); - rc =inode_change_ok (inode, ia); + rc =setattr_prepare (dentry, ia);if (rc) goto out;if (ia->ia_valid &ATTR_SIZE ) {
fs/exofs/inode.c +1 -1
@@ -1018,7 +1018,7 @@ int exofs_setattr(struct dentry *dentry, struct iattr *iattr)if (unlikely (error))return error; - error =inode_change_ok (inode, iattr); + error =setattr_prepare (dentry, iattr);if (unlikely (error))return error;
fs/ext2/acl.c +4 -8
@@ -194,15 +194,11 @@ ext2_set_acl(struct inode *inode, int type, struct posix_acl *acl)case ACL_TYPE_ACCESS : name_index =EXT2_XATTR_INDEX_POSIX_ACL_ACCESS ;if (acl) { - error =posix_acl_equiv_mode (acl, &inode->i_mode); -if (error <0 ) + error =posix_acl_update_mode (inode, &inode->i_mode, &acl); +if (error)return error; -else { - inode->i_ctime =CURRENT_TIME_SEC ; -mark_inode_dirty (inode); -if (error ==0 ) - acl =NULL ; - } + inode->i_ctime =CURRENT_TIME_SEC ; +mark_inode_dirty (inode); }break ;
fs/ext2/inode.c +1 -1
@@ -1530,7 +1530,7 @@ int ext2_setattr(struct dentry *dentry, struct iattr *iattr)struct inode *inode = dentry->d_inode;int error; - error =inode_change_ok (inode, iattr); + error =setattr_prepare (dentry, iattr);if (error)return error;
fs/ext3/acl.c +4 -8
@@ -199,15 +199,11 @@ ext3_set_acl(handle_t *handle, struct inode *inode, int type,case ACL_TYPE_ACCESS : name_index =EXT3_XATTR_INDEX_POSIX_ACL_ACCESS ;if (acl) { - error =posix_acl_equiv_mode (acl, &inode->i_mode); -if (error <0 ) + error =posix_acl_update_mode (inode, &inode->i_mode, &acl); +if (error)return error; -else { - inode->i_ctime =CURRENT_TIME_SEC ; -ext3_mark_inode_dirty (handle, inode); -if (error ==0 ) - acl =NULL ; - } + inode->i_ctime =CURRENT_TIME_SEC ; +ext3_mark_inode_dirty (handle, inode); }break ;
fs/ext3/inode.c +5 -1
@@ -223,8 +223,12 @@ void ext3_evict_inode (struct inode *inode)* * Note that directories do not have this problem because they don't * use page cache. +* +* The s_journal check handles the case when ext3_get_journal() fails +* and puts the journal inode. */ if (inode->i_nlink &&ext3_should_journal_data (inode) && +EXT3_SB (inode->i_sb)->s_journal && (S_ISLNK (inode->i_mode) ||S_ISREG (inode->i_mode))) {tid_t commit_tid =atomic_read (&ei->i_datasync_tid);journal_t *journal =EXT3_SB (inode->i_sb)->s_journal;
@@ -3271,7 +3275,7 @@ int ext3_setattr(struct dentry *dentry, struct iattr *attr)int error, rc =0 ;const unsigned int ia_valid = attr->ia_valid; - error =inode_change_ok (inode, attr); + error =setattr_prepare (dentry, attr);if (error)return error;
fs/ext4/acl.c +4 -8
@@ -198,15 +198,11 @@ ext4_set_acl(handle_t *handle, struct inode *inode, int type,case ACL_TYPE_ACCESS : name_index =EXT4_XATTR_INDEX_POSIX_ACL_ACCESS ;if (acl) { - error =posix_acl_equiv_mode (acl, &inode->i_mode); -if (error <0 ) + error =posix_acl_update_mode (inode, &inode->i_mode, &acl); +if (error)return error; -else { - inode->i_ctime =ext4_current_time (inode); -ext4_mark_inode_dirty (handle, inode); -if (error ==0 ) - acl =NULL ; - } + inode->i_ctime =ext4_current_time (inode); +ext4_mark_inode_dirty (handle, inode); }break ;
fs/ext4/extents.c +6 -2
@@ -319,9 +319,13 @@ static int ext4_valid_extent(struct inode *inode, struct ext4_extent *ext)ext4_fsblk_t block =ext4_ext_pblock (ext);int len =ext4_ext_get_actual_len (ext);ext4_lblk_t lblock =le32_to_cpu (ext->ee_block); -ext4_lblk_t last = lblock + len -1 ; -if (len ==0 || lblock > last) +/* +* We allow neither: +* - zero length +* - overflow/wrap-around +*/ +if (lblock + len <= lblock)return 0 ;return ext4_data_block_valid (EXT4_SB (inode->i_sb), block, len); }
fs/ext4/inode.c +4 -4
@@ -142,9 +142,9 @@ void ext4_evict_inode(struct inode *inode)* Note that directories do not have this problem because they * don't use page cache. */ -if (ext4_should_journal_data (inode) && - (S_ISLNK (inode->i_mode) ||S_ISREG (inode->i_mode)) && - inode->i_ino !=EXT4_JOURNAL_INO ) { +if (inode->i_ino !=EXT4_JOURNAL_INO && +ext4_should_journal_data (inode) && + (S_ISLNK (inode->i_mode) ||S_ISREG (inode->i_mode))) {journal_t *journal =EXT4_SB (inode->i_sb)->s_journal;tid_t commit_tid =EXT4_I (inode)->i_datasync_tid;
@@ -4291,7 +4291,7 @@ int ext4_setattr(struct dentry *dentry, struct iattr *attr)int orphan =0 ;const unsigned int ia_valid = attr->ia_valid; - error =inode_change_ok (inode, attr); + error =setattr_prepare (dentry, attr);if (error)return error;
fs/ext4/mballoc.c +3 -14
@@ -2824,7 +2824,7 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac,ext4_error (sb,"Allocating blocks %llu-%llu which overlap " "fs metadata\n" , block, block+len);/* File system mounted not to panic on error -* Fix the bitmap and repeat the block allocation +* Fix the bitmap and return EIO * We leak some of the blocks here. */ ext4_lock_group (sb, ac->ac_b_ex.fe_group);
@@ -2833,7 +2833,7 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac,ext4_unlock_group (sb, ac->ac_b_ex.fe_group); err =ext4_handle_dirty_metadata (handle,NULL , bitmap_bh);if (!err) - err = -EAGAIN ; + err = -EIO ; goto out_err; }
@@ -4401,18 +4401,7 @@ repeat: }if (likely (ac->ac_status ==AC_STATUS_FOUND )) { *errp =ext4_mb_mark_diskspace_used (ac, handle, reserv_clstrs); -if (*errp == -EAGAIN ) { -/* -* drop the reference that we took -* in ext4_mb_use_best_found -*/ -ext4_mb_release_context (ac); - ac->ac_b_ex.fe_group =0 ; - ac->ac_b_ex.fe_start =0 ; - ac->ac_b_ex.fe_len =0 ; - ac->ac_status =AC_STATUS_CONTINUE ; - goto repeat; - }else if (*errp) +if (*errp) errout:ext4_discard_allocated_blocks (ac);else {
fs/ext4/super.c +34 -1
@@ -2097,6 +2097,7 @@ int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 block_group,/* Called at mount-time, super-block is locked */ static int ext4_check_descriptors (struct super_block *sb, +ext4_fsblk_t sb_block,ext4_group_t *first_not_zeroed) {struct ext4_sb_info *sbi =EXT4_SB (sb);
@@ -2127,6 +2128,11 @@ static int ext4_check_descriptors(struct super_block *sb, grp = i; block_bitmap =ext4_block_bitmap (sb, gdp); +if (block_bitmap == sb_block) { +ext4_msg (sb,KERN_ERR ,"ext4_check_descriptors: " + "Block bitmap for group %u overlaps "
Lines of this file are not shown. View the raw message.
sound/core/timer.c +47 -25
72 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.