Linux 2.6.32.49
Subsystems (32)
I'm announcing the release of the 2.6.32.49 kernel.
All users of the 2.6.32 kernel series must upgrade.
The updated 2.6.32.y git tree can be found at (NOTE THE ADDRESS CHANGE):
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-2.6.32.y and can be browsed at the normal kernel.org git web browser: http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=shortlog;h=refs/heads/linux-2.6.32.y
thanks,
greg k-h
------------
Documentation/Makefile | 2 Documentation/kbuild/makefiles.txt | 12 ++ Documentation/video4linux/Makefile | 8 - Documentation/video4linux/v4lgrab.c | 201 ------------------------------------ Makefile | 7 - arch/ia64/hp/sim/simserial.c | 12 -- drivers/base/sys.c | 6 + drivers/char/amiserial.c | 56 +++++----- drivers/char/cyclades.c | 49 ++++---- drivers/char/ip2/ip2main.c | 72 +++++++----- drivers/char/mxser.c | 62 ++++++----- drivers/char/nozomi.c | 37 +++--- drivers/char/pcmcia/synclink_cs.c | 60 ++++------ drivers/char/synclink.c | 73 ++++++------- drivers/char/synclink_gt.c | 56 +++++----- drivers/char/synclinkmp.c | 61 +++++----- drivers/char/tty_io.c | 21 +++ drivers/gpu/drm/i915/i915_gem.c | 44 ++++--- drivers/md/raid5.c | 32 +++-- drivers/mtd/mtdchar.c | 1 drivers/scsi/hosts.c | 9 + drivers/scsi/scsi_lib.c | 9 + drivers/scsi/st.c | 4 drivers/serial/68360serial.c | 51 ++++----- drivers/serial/serial_core.c | 35 ++---- drivers/usb/core/quirks.c | 27 ++++ drivers/usb/serial/ftdi_sio.c | 14 +- drivers/usb/serial/pl2303.c | 1 drivers/usb/serial/pl2303.h | 4 drivers/usb/serial/usb-serial.c | 13 ++ drivers/usb/storage/protocol.c | 7 - drivers/xen/events.c | 2 fs/hfs/trans.c | 2 include/linux/interrupt.h | 6 + include/linux/tty_driver.h | 9 + include/linux/usb/serial.h | 2 include/linux/vmalloc.h | 1 kernel/irq/pm.c | 35 +++++- kernel/power/suspend.c | 2 lib/nlattr.c | 1 mm/vmalloc.c | 67 ++++++++---- net/bluetooth/rfcomm/tty.c | 4 net/ipv6/udp.c | 2 net/sunrpc/auth_unix.c | 3 scripts/Kbuild.include | 5 sound/pci/hda/patch_realtek.c | 1 sound/soc/codecs/wm8940.c | 1 47 files changed, 586 insertions(+), 603 deletions(-)
Alan Cox (2):
tty: Make tiocgicount a handler
tty: icount changeover for other main devices
Alan Stern (1):
usb-storage: Accept 8020i-protocol commands longer than 12 bytes
Andrew Worsley (1):
USB: Fix Corruption issue in USB ftdi driver ftdi_sio.c
Axel Lin (1):
ASoC: wm8940: Properly set codec->dapm.bias_level
Bart Van Assche (1):
Make scsi_free_queue() kill pending SCSI commands
Chris Wilson (2):
drm/i915: Sanity check pread/pwrite
drm/i915: Rephrase pwrite bounds checking to avoid any potential overflow
Dan Carpenter (2):
PM / Suspend: Off by one in pm_suspend()
hfs: add sanity check for file name length
Dave Jones (1):
kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
Greg Kroah-Hartman (1):
Linux 2.6.32.49
Herton Ronaldo Krzesinski (1):
Revert "ALSA: hda: Fix quirk for Dell Inspiron 910"
Ian Campbell (1):
genirq: Add IRQF_RESUME_EARLY and resume such IRQs earlier
Johannes Berg (1):
netlink: validate NLA_MSECS length
Josh Boyer (1):
USB: add quirk for Logitech C600 web cam
Mauro Carvalho Chehab (1):
Remove the old V4L1 v4lgrab.c file
Michal Marek (1):
kbuild: Fix passing -Wno-* options to gcc 4.4+
Mitsuo Hayasaka (1):
mm: avoid null pointer access in vm_struct via /proc/vmallocinfo
NeilBrown (2):
NFS/sunrpc: don't use a credential with extra groups. md/raid5: abort any pending parity operations when array fails.
Peter Wippich (1):
mtd: mtdchar: add missing initializer on raw write
Petr Uzel (1):
st: fix race in st_scsi_execute_end
Shan Wei (1):
ipv6: udp: fix the wrong headroom check
sordna (1):
USB: quirks: adding more quirky webcams to avoid squeaky audio
wangyanqing (1):
USB: serial: pl2303: rm duplicate id
Documentation/Makefile +1 -1
@@ -1,3 +1,3 @@ obj-m := DocBook/ accounting/ auxdisplay/ connector/ \ filesystems/configfs/ ia64/ networking/ \ - pcmcia/ spi/ video4linux/ vm/ watchdog/src/ + pcmcia/ spi/ vm/ watchdog/src/
Documentation/kbuild/makefiles.txt +12 -0
@@ -502,6 +502,18 @@ more details, with real examples. gcc >= 3.00. For gcc < 3.00, -malign-functions=4 is used. Note: cc-option-align uses KBUILD_CFLAGS for $(CC) options + cc-disable-warning + cc-disable-warning checks if gcc supports a given warning and returns + the commandline switch to disable it. This special function is needed, + because gcc 4.4 and later accept any unknown -Wno-* option and only + warn about it if there is another warning in the source file. + + Example: + KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) + + In the above example, -Wno-unused-but-set-variable will be added to + KBUILD_CFLAGS only if gcc really accepts it. + cc-version cc-version returns a numerical version of the $(CC) compiler version. The format is <major><minor> where both are two digits. So for example
Documentation/video4linux/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# kbuild trick to avoid linker error. Can be omitted if a module is built. -obj- := dummy.o - -# List of programs to build -hostprogs-y := v4lgrab - -# Tell kbuild to always build the programs -always := $(hostprogs-y)
Documentation/video4linux/v4lgrab.c deleted +0 -201
201 lines not on this page · raw message
Makefile +5 -2
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 32 -EXTRAVERSION = .48 +EXTRAVERSION = .49 NAME = Man-Eating Seals of Antiquity # *DOCUMENTATION*
@@ -537,6 +537,9 @@ ifndef CONFIG_CC_STACKPROTECTOR KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) endif +# This warning generated too much noise in a regular build. +KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) + ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls else
@@ -565,7 +568,7 @@ CHECKFLAGS += $(NOSTDINC_FLAGS) KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) # disable pointer signed / unsigned warnings in gcc 4.0 -KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) +KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign) # disable invalid "can't wrap" optimizations for signed / pointers KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
arch/ia64/hp/sim/simserial.c +1 -11
@@ -395,7 +395,7 @@ static int rs_ioctl(struct tty_struct *tty, struct file * file, {if ((cmd !=TIOCGSERIAL ) && (cmd !=TIOCSSERIAL ) && (cmd !=TIOCSERCONFIG ) && (cmd !=TIOCSERGSTRUCT ) && - (cmd !=TIOCMIWAIT ) && (cmd !=TIOCGICOUNT )) { + (cmd !=TIOCMIWAIT )) {if (tty->flags & (1 <<TTY_IO_ERROR ))return -EIO ; }
@@ -433,16 +433,6 @@ static int rs_ioctl(struct tty_struct *tty, struct file * file,case TIOCMIWAIT :printk (KERN_INFO "rs_ioctl: TIOCMIWAIT: called\n" );return 0 ; -/* -* Get counter of input serial line interrupts (DCD,RI,DSR,CTS) -* Return: write counters to the user passed counter struct -* NB: both 1->0 and 0->1 transitions are counted except for -* RI where only 0->1 is counted. -*/ -case TIOCGICOUNT : -printk (KERN_INFO "rs_ioctl: TIOCGICOUNT called\n" ); -return 0 ; -case TIOCSERGWILD :case TIOCSERSWILD :/* "setserial -W" is called in Debian boot */
drivers/base/sys.c +6 -0
@@ -471,6 +471,12 @@ int sysdev_resume(void) {struct sysdev_class *cls; +/* +* Called from syscore in mainline but called directly here +* since syscore does not exist in this tree. +*/ +irq_pm_syscore_resume (); +WARN_ONCE (!irqs_disabled (),"Interrupts enabled while resuming system devices\n" );
drivers/char/amiserial.c +31 -25
74 lines not on this page · raw message
drivers/char/cyclades.c +26 -23
67 lines not on this page · raw message
drivers/char/ip2/ip2main.c +43 -29
102 lines not on this page · raw message
drivers/char/mxser.c +35 -27
86 lines not on this page · raw message
drivers/char/nozomi.c +18 -19
@@ -1783,24 +1783,24 @@ static int ntty_cflags_changed(struct port *port, unsigned long flags,return ret; } -static int ntty_ioctl_tiocgicount (struct port *port,void __user *argp) +static int ntty_tiocgicount (struct tty_struct *tty, +struct serial_icounter_struct *icount) { +struct port *port = tty->driver_data;const struct async_icount cnow = port->tty_icount; -struct serial_icounter_struct icount; - - icount.cts = cnow.cts; - icount.dsr = cnow.dsr; - icount.rng = cnow.rng; - icount.dcd = cnow.dcd; - icount.rx = cnow.rx; - icount.tx = cnow.tx; - icount.frame = cnow.frame; - icount.overrun = cnow.overrun; - icount.parity = cnow.parity; - icount.brk = cnow.brk; - icount.buf_overrun = cnow.buf_overrun; - -return copy_to_user (argp, &icount,sizeof (icount)) ? -EFAULT :0 ; + + icount->cts = cnow.cts; + icount->dsr = cnow.dsr; + icount->rng = cnow.rng; + icount->dcd = cnow.dcd; + icount->rx = cnow.rx; + icount->tx = cnow.tx; + icount->frame = cnow.frame; + icount->overrun = cnow.overrun; + icount->parity = cnow.parity; + icount->brk = cnow.brk; + icount->buf_overrun = cnow.buf_overrun; +return 0 ; } static int ntty_ioctl(struct tty_struct *tty, struct file *file,
@@ -1819,9 +1819,7 @@ static int ntty_ioctl(struct tty_struct *tty, struct file *file, rval =wait_event_interruptible (port->tty_wait,ntty_cflags_changed (port, arg, &cprev));break ; - }case TIOCGICOUNT : - rval =ntty_ioctl_tiocgicount (port, argp); -break ; + }default :DBG1 ("ERR: 0x%08X, %d" , cmd, cmd);break ;
@@ -1895,6 +1893,7 @@ static const struct tty_operations tty_ops = { .chars_in_buffer = ntty_chars_in_buffer, .tiocmget = ntty_tiocmget, .tiocmset = ntty_tiocmset, + .get_icount = ntty_tiocgicount, };/* Module initialization */
drivers/char/pcmcia/synclink_cs.c +27 -33
85 lines not on this page · raw message
drivers/char/synclink.c +34 -39
104 lines not on this page · raw message
drivers/char/synclink_gt.c +29 -27
92 lines not on this page · raw message
drivers/char/synclinkmp.c +28 -33
91 lines not on this page · raw message
drivers/char/tty_io.c +21 -0
@@ -96,6 +96,7 @@#include <linux/bitops.h> #include <linux/delay.h> #include <linux/seq_file.h> +#include <linux/serial.h> #include <linux/uaccess.h> #include <asm/system.h>
@@ -2436,6 +2437,20 @@ static int tty_tiocmset(struct tty_struct *tty, struct file *file, unsigned intreturn tty->ops->tiocmset (tty, file, set, clear); } +static int tty_tiocgicount (struct tty_struct *tty,void __user *arg) +{ +int retval = -EINVAL ; +struct serial_icounter_struct icount; +memset (&icount,0 ,sizeof (icount)); +if (tty->ops->get_icount) + retval = tty->ops->get_icount (tty, &icount); +if (retval !=0 ) +return retval; +if (copy_to_user (arg, &icount,sizeof (icount))) +return -EFAULT ; +return 0 ; +} +struct tty_struct *tty_pair_get_tty (struct tty_struct *tty) { if (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
@@ -2556,6 +2571,12 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)case TIOCMBIC :case TIOCMBIS :return tty_tiocmset (tty, file, cmd, p); +case TIOCGICOUNT : + retval =tty_tiocgicount (tty, p); +/* For the moment allow fall through to the old method */ +if (retval != -EINVAL ) +return retval; +break ;case TCFLSH :switch (arg) {case TCIFLUSH :
drivers/gpu/drm/i915/i915_gem.c +24 -20
76 lines not on this page · raw message
drivers/md/raid5.c +20 -12
@@ -3038,12 +3038,16 @@ static void handle_stripe5(struct stripe_head *sh)/* check if the array has lost two devices and, if so, some requests might * need to be failed */ -if (s.failed >1 && s.to_read+s.to_write+s.written) -handle_failed_stripe (conf, sh, &s, disks, &return_bi); -if (s.failed >1 && s.syncing) { -md_done_sync (conf->mddev,STRIPE_SECTORS ,0 ); -clear_bit (STRIPE_SYNCING , &sh->state); - s.syncing =0 ; +if (s.failed >1 ) { + sh->check_state =0 ; + sh->reconstruct_state =0 ; +if (s.to_read+s.to_write+s.written) +handle_failed_stripe (conf, sh, &s, disks, &return_bi); +if (s.syncing) { +md_done_sync (conf->mddev,STRIPE_SECTORS ,0 ); +clear_bit (STRIPE_SYNCING , &sh->state); + s.syncing =0 ; + } }/* might be able to return some write requests if the parity block
@@ -3314,12 +3318,16 @@ static void handle_stripe6(struct stripe_head *sh)/* check if the array has lost >2 devices and, if so, some requests * might need to be failed */ -if (s.failed >2 && s.to_read+s.to_write+s.written) -handle_failed_stripe (conf, sh, &s, disks, &return_bi); -if (s.failed >2 && s.syncing) { -md_done_sync (conf->mddev,STRIPE_SECTORS ,0 ); -clear_bit (STRIPE_SYNCING , &sh->state); - s.syncing =0 ; +if (s.failed >2 ) { + sh->check_state =0 ; + sh->reconstruct_state =0 ; +if (s.to_read+s.to_write+s.written) +handle_failed_stripe (conf, sh, &s, disks, &return_bi); +if (s.syncing) { +md_done_sync (conf->mddev,STRIPE_SECTORS ,0 ); +clear_bit (STRIPE_SYNCING , &sh->state); + s.syncing =0 ; + } }/*
drivers/mtd/mtdchar.c +1 -0
@@ -290,6 +290,7 @@ static ssize_t mtd_write(struct file *file, const char __user *buf, size_t count ops.mode =MTD_OOB_RAW ; ops.datbuf = kbuf; ops.oobbuf =NULL ; + ops.ooboffs =0 ; ops.len = len; ret = mtd->write_oob (mtd, *ppos, &ops);
drivers/scsi/hosts.c +6 -3
@@ -275,6 +275,7 @@ static void scsi_host_dev_release(struct device *dev) {struct Scsi_Host *shost =dev_to_shost (dev);struct device *parent = dev->parent; +struct request_queue *q;scsi_proc_hostdir_rm (shost->hostt);
@@ -282,9 +283,11 @@ static void scsi_host_dev_release(struct device *dev)kthread_stop (shost->ehandler);if (shost->work_q)destroy_workqueue (shost->work_q); -if (shost->uspace_req_q) { -kfree (shost->uspace_req_q->queuedata); -scsi_free_queue (shost->uspace_req_q); + q = shost->uspace_req_q; +if (q) { +kfree (q->queuedata); + q->queuedata =NULL ; +scsi_free_queue (q); }scsi_destroy_command_freelist (shost);
drivers/scsi/scsi_lib.c +9 -0
@@ -1672,6 +1672,15 @@ struct request_queue *scsi_alloc_queue(struct scsi_device *sdev)void scsi_free_queue (struct request_queue *q) { +unsigned long flags; + +WARN_ON (q->queuedata); + +/* cause scsi_request_fn() to kill all non-finished requests */ +spin_lock_irqsave (q->queue_lock, flags); + q->request_fn (q); +spin_unlock_irqrestore (q->queue_lock, flags); +blk_cleanup_queue (q); }
drivers/scsi/st.c +3 -1
@@ -461,14 +461,16 @@ static void st_scsi_execute_end(struct request *req, int uptodate) {struct st_request *SRpnt = req->end_io_data;struct scsi_tape *STp = SRpnt->stp; +struct bio *tmp; STp->buffer->cmdstat.midlevel_result = SRpnt->result = req->errors; STp->buffer->cmdstat.residual = req->resid_len; + tmp = SRpnt->bio;if (SRpnt->waiting)complete (SRpnt->waiting); -blk_rq_unmap_user (SRpnt->bio); +blk_rq_unmap_user (tmp);__blk_put_request (req->q, req); }
drivers/serial/68360serial.c +25 -26
69 lines not on this page · raw message
drivers/serial/serial_core.c +16 -19
@@ -1067,10 +1067,10 @@ uart_wait_modem_status(struct uart_state *state, unsigned long arg)* NB: both 1->0 and 0->1 transitions are counted except for * RI where only 0->1 is counted. */ -static int uart_get_count (struct uart_state *state, -struct serial_icounter_struct __user *icnt) +static int uart_get_icount (struct tty_struct *tty, +struct serial_icounter_struct *icount) { -struct serial_icounter_struct icount; +struct uart_state *state = tty->driver_data;struct uart_icount cnow;struct uart_port *uport = state->uart_port;
@@ -1078,19 +1078,19 @@ static int uart_get_count(struct uart_state *state,memcpy (&cnow, &uport->icount,sizeof (struct uart_icount ));spin_unlock_irq (&uport->lock); - icount.cts = cnow.cts; - icount.dsr = cnow.dsr; - icount.rng = cnow.rng; - icount.dcd = cnow.dcd; - icount.rx = cnow.rx; - icount.tx = cnow.tx; - icount.frame = cnow.frame; - icount.overrun = cnow.overrun; - icount.parity = cnow.parity; - icount.brk = cnow.brk; - icount.buf_overrun = cnow.buf_overrun; + icount->cts = cnow.cts; + icount->dsr = cnow.dsr; + icount->rng = cnow.rng; + icount->dcd = cnow.dcd; + icount->rx = cnow.rx; + icount->tx = cnow.tx; + icount->frame = cnow.frame; + icount->overrun = cnow.overrun; + icount->parity = cnow.parity; + icount->brk = cnow.brk; + icount->buf_overrun = cnow.buf_overrun; -return copy_to_user (icnt, &icount,sizeof (icount)) ? -EFAULT :0 ; +return 0 ; }/*
@@ -1143,10 +1143,6 @@ uart_ioctl(struct tty_struct *tty, struct file *filp, unsigned int cmd,case TIOCMIWAIT : ret =uart_wait_modem_status (state, arg);break ; - -case TIOCGICOUNT : - ret =uart_get_count (state, uarg); -break ; }if (ret != -ENOIOCTLCMD )
@@ -2322,6 +2318,7 @@ static const struct tty_operations uart_ops = {#endif .tiocmget = uart_tiocmget, .tiocmset = uart_tiocmset, + .get_icount = uart_get_icount, #ifdef CONFIG_CONSOLE_POLL .poll_init = uart_poll_init, .poll_get_char = uart_poll_get_char,
drivers/usb/core/quirks.c +27 -0
@@ -47,15 +47,42 @@ static const struct usb_device_id usb_quirk_list[] = {/* Logitech Webcam B/C500 */ { USB_DEVICE(0x046d, 0x0807), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech Webcam C600 */ + { USB_DEVICE(0x046d, 0x0808), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech Webcam Pro 9000 */ { USB_DEVICE(0x046d, 0x0809), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech Webcam C905 */ + { USB_DEVICE(0x046d, 0x080a), .driver_info = USB_QUIRK_RESET_RESUME }, + + /* Logitech Webcam C210 */ + { USB_DEVICE(0x046d, 0x0819), .driver_info = USB_QUIRK_RESET_RESUME }, + + /* Logitech Webcam C260 */ + { USB_DEVICE(0x046d, 0x081a), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech Webcam C310 */ { USB_DEVICE(0x046d, 0x081b), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech Webcam C910 */ + { USB_DEVICE(0x046d, 0x0821), .driver_info = USB_QUIRK_RESET_RESUME }, + + /* Logitech Webcam C160 */ + { USB_DEVICE(0x046d, 0x0824), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech Webcam C270 */ { USB_DEVICE(0x046d, 0x0825), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech Quickcam Pro 9000 */ + { USB_DEVICE(0x046d, 0x0990), .driver_info = USB_QUIRK_RESET_RESUME }, + + /* Logitech Quickcam E3500 */ + { USB_DEVICE(0x046d, 0x09a4), .driver_info = USB_QUIRK_RESET_RESUME }, + + /* Logitech Quickcam Vision Pro */ + { USB_DEVICE(0x046d, 0x09a6), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech Harmony 700-series */ { USB_DEVICE(0x046d, 0xc122), .driver_info = USB_QUIRK_DELAY_INIT },
drivers/usb/serial/ftdi_sio.c +11 -3
@@ -2355,13 +2355,19 @@ static void ftdi_set_termios(struct tty_struct *tty, cflag = termios->c_cflag; -/* FIXME -For this cut I don't care if the line is really changing or -not - so just do the change regardless - should be able to -compare old_termios and tty->termios */ +if (old_termios->c_cflag == termios->c_cflag + && old_termios->c_ispeed == termios->c_ispeed + && old_termios->c_ospeed == termios->c_ospeed) + goto no_c_cflag_changes; +/* NOTE These routines can get interrupted by ftdi_sio_read_bulk_callback - need to examine what this means - don't see any problems yet */ +if ((old_termios->c_cflag & (CSIZE |PARODD |PARENB |CMSPAR |CSTOPB )) == + (termios->c_cflag & (CSIZE |PARODD |PARENB |CMSPAR |CSTOPB ))) + goto no_data_parity_stop_changes; +/* Set number of data bits, parity, stop bits */ termios->c_cflag &= ~CMSPAR ;
@@ -2398,6 +2404,7 @@ static void ftdi_set_termios(struct tty_struct *tty, }/* Now do the baudrate */ +no_data_parity_stop_changes:if ((cflag &CBAUD ) ==B0 ) {/* Disable flow control */ if (usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
@@ -2423,6 +2430,7 @@ static void ftdi_set_termios(struct tty_struct *tty,/* Set flow control */ /* Note device also supports DTR/CD (ugh) and Xon/Xoff in hardware */ +no_c_cflag_changes:if (cflag &CRTSCTS ) {dbg ("%s Setting to CRTSCTS flow control" , __func__); if (usb_control_msg(dev,
drivers/usb/serial/pl2303.c +0 -1
@@ -101,7 +101,6 @@ static struct usb_device_id id_table [] = { { USB_DEVICE(SONY_VENDOR_ID, SONY_QN3USB_PRODUCT_ID) }, { USB_DEVICE(SANWA_VENDOR_ID, SANWA_PRODUCT_ID) }, { USB_DEVICE(ADLINK_VENDOR_ID, ADLINK_ND6530_PRODUCT_ID) }, - { USB_DEVICE(WINCHIPHEAD_VENDOR_ID, WINCHIPHEAD_USBSER_PRODUCT_ID) }, { USB_DEVICE(SMART_VENDOR_ID, SMART_PRODUCT_ID) }, { } /* Terminating entry */ };
drivers/usb/serial/pl2303.h +0 -4
@@ -145,10 +145,6 @@#define ADLINK_VENDOR_ID 0x0b63#define ADLINK_ND6530_PRODUCT_ID 0x6530 -/* WinChipHead USB->RS 232 adapter */ -#define WINCHIPHEAD_VENDOR_ID 0x4348 -#define WINCHIPHEAD_USBSER_PRODUCT_ID 0x5523 -/* SMART USB Serial Adapter */ #define SMART_VENDOR_ID 0x0b8c#define SMART_PRODUCT_ID 0x2303
drivers/usb/serial/usb-serial.c +13 -0
@@ -562,6 +562,18 @@ static int serial_tiocmset(struct tty_struct *tty, struct file *file,return -EINVAL ; } +static int serial_get_icount (struct tty_struct *tty, +struct serial_icounter_struct *icount) +{ +struct usb_serial_port *port = tty->driver_data; + +dbg ("%s - port %d" , __func__, port->number); + +if (port->serial->type->get_icount) +return port->serial->type->get_icount (tty, icount); +return -EINVAL ; +} +/* * We would be calling tty_wakeup here, but unfortunately some line * disciplines have an annoying habit of calling tty->write from
@@ -1214,6 +1226,7 @@ static const struct tty_operations serial_ops = { .chars_in_buffer = serial_chars_in_buffer, .tiocmget = serial_tiocmget, .tiocmset = serial_tiocmset, + .get_icount = serial_get_icount, .cleanup = serial_cleanup, .install = serial_install, .proc_fops = &serial_proc_fops,
drivers/usb/storage/protocol.c +3 -4
@@ -58,7 +58,9 @@void usb_stor_pad12_command (struct scsi_cmnd *srb,struct us_data *us) { -/* Pad the SCSI command with zeros out to 12 bytes +/* +* Pad the SCSI command with zeros out to 12 bytes. If the +* command already is 12 bytes or longer, leave it alone. * * NOTE: This only works because a scsi_cmnd struct field contains * a unsigned char cmnd[16], so we know we have storage available
@@ -66,9 +68,6 @@ void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us)for (; srb->cmd_len<12 ; srb->cmd_len++) srb->cmnd[srb->cmd_len] =0 ; -/* set command length to 12 bytes */ - srb->cmd_len =12 ; -/* send the command to the transport layer */ usb_stor_invoke_transport (srb, us); }
drivers/xen/events.c +1 -1
@@ -536,7 +536,7 @@ int bind_ipi_to_irqhandler(enum ipi_vector ipi,if (irq <0 )return irq; - irqflags |=IRQF_NO_SUSPEND |IRQF_FORCE_RESUME ; + irqflags |=IRQF_NO_SUSPEND |IRQF_FORCE_RESUME |IRQF_EARLY_RESUME ; retval =request_irq (irq, handler, irqflags, devname, dev_id);if (retval !=0 ) {unbind_from_irq (irq);
fs/hfs/trans.c +2 -0
@@ -40,6 +40,8 @@ int hfs_mac2asc(struct super_block *sb, char *out, const struct hfs_name *in) src = in->name; srclen = in->len; +if (srclen >HFS_NAMELEN ) + srclen =HFS_NAMELEN ; dst = out; dstlen =HFS_MAX_NAMELEN ;if (nls_io) {
include/linux/interrupt.h +6 -0
@@ -54,6 +54,8 @@* irq line disabled until the threaded handler has been run. * IRQF_NO_SUSPEND - Do not disable this IRQ during suspend * IRQF_FORCE_RESUME - Force enable it on resume even if IRQF_NO_SUSPEND is set +* IRQF_EARLY_RESUME - Resume IRQ early during syscore instead of at device +* resume time. */ #define IRQF_DISABLED 0x00000020#define IRQF_SAMPLE_RANDOM 0x00000040
@@ -66,6 +68,7 @@#define IRQF_ONESHOT 0x00002000#define IRQF_NO_SUSPEND 0x00004000#define IRQF_FORCE_RESUME 0x00008000 +#define IRQF_EARLY_RESUME 0x00020000#define IRQF_TIMER (__IRQF_TIMER | IRQF_NO_SUSPEND)
@@ -198,13 +201,16 @@ extern void suspend_device_irqs(void);extern void resume_device_irqs (void );#ifdef CONFIG_PM_SLEEP extern int check_wakeup_irqs (void ); +extern void irq_pm_syscore_resume (void );#else static inline int check_wakeup_irqs (void ) {return 0 ; } +static inline void irq_pm_syscore_resume (void ) { };#endif #else static inline void suspend_device_irqs (void ) { };static inline void resume_device_irqs (void ) { };static inline int check_wakeup_irqs (void ) {return 0 ; } +static inline void irq_pm_syscore_resume (void ) { };#endif #if defined(CONFIG_SMP ) && defined(CONFIG_GENERIC_HARDIRQS )
include/linux/tty_driver.h +9 -0
@@ -224,6 +224,12 @@* unless the tty also has a valid tty->termiox pointer. * * Optional: Called under the termios lock +* +* int (*get_icount)(struct tty_struct *tty, struct serial_icounter *icount); +* +* Called when the device receives a TIOCGICOUNT ioctl. Passed a kernel +* structure to complete. This method is optional and will only be called +* if provided (otherwise EINVAL will be returned). */ #include <linux/fs.h>
@@ -232,6 +238,7 @@struct tty_struct ;struct tty_driver ; +struct serial_icounter_struct ;struct tty_operations { struct tty_struct * (*lookup)(struct tty_driver *driver,
@@ -268,6 +275,8 @@ struct tty_operations { unsigned int set, unsigned int clear);int (*resize)(struct tty_struct *tty,struct winsize *ws);int (*set_termiox)(struct tty_struct *tty,struct termiox *tnew); +int (*get_icount)(struct tty_struct *tty, +struct serial_icounter_struct *icount);#ifdef CONFIG_CONSOLE_POLL int (*poll_init)(struct tty_driver *driver,int line,char *options);int (*poll_get_char)(struct tty_driver *driver,int line);
include/linux/usb/serial.h +2 -0
@@ -259,6 +259,8 @@ struct usb_serial_driver {int (*tiocmget)(struct tty_struct *tty,struct file *file);int (*tiocmset)(struct tty_struct *tty,struct file *file,unsigned int set,unsigned int clear); +int (*get_icount)(struct tty_struct *tty, +struct serial_icounter_struct *icount);/* Called by the tty layer for port level work. There may or may not be an attached tty at this point */ void (*dtr_rts)(struct usb_serial_port *port,int on);
include/linux/vmalloc.h +1 -0
@@ -13,6 +13,7 @@ struct vm_area_struct; /* vma defining user mapping in mm_types.h */#define VM_MAP 0x00000004/* vmap()ed pages */ #define VM_USERMAP 0x00000008/* suitable for remap_vmalloc_range */ #define VM_VPAGES 0x00000010/* buffer for pages was vmalloc'ed */ +#define VM_UNLIST 0x00000020/* vm_struct is not listed in vmlist */ /* bits [20..32] reserved for arch specific ioremap internals */ /*
kernel/irq/pm.c +28 -7
@@ -39,25 +39,46 @@ void suspend_device_irqs(void) }EXPORT_SYMBOL_GPL (suspend_device_irqs); -/** -* resume_device_irqs - enable interrupt lines disabled by suspend_device_irqs() -* -* Enable all interrupt lines previously disabled by suspend_device_irqs() that -* have the IRQ_SUSPENDED flag set. -*/ -void resume_device_irqs (void ) +static void resume_irqs (bool want_early) {struct irq_desc *desc;int irq;for_each_irq_desc (irq, desc) {unsigned long flags; +bool is_early = desc->action && + desc->action->flags &IRQF_EARLY_RESUME ; + +if (is_early != want_early) +continue ;spin_lock_irqsave (&desc->lock, flags);__enable_irq (desc, irq, true);spin_unlock_irqrestore (&desc->lock, flags); } } + +/** +* irq_pm_syscore_ops - enable interrupt lines early +* +* Enable all interrupt lines with %IRQF_EARLY_RESUME set. +*/ +void irq_pm_syscore_resume (void ) +{ +resume_irqs (true); +} + +/** +* resume_device_irqs - enable interrupt lines disabled by suspend_device_irqs() +* +* Enable all non-%IRQF_EARLY_RESUME interrupt lines previously +* disabled by suspend_device_irqs() that have the IRQS_SUSPENDED flag +* set as well as those with %IRQF_FORCE_RESUME. +*/ +void resume_device_irqs (void ) +{ +resume_irqs (false); +}EXPORT_SYMBOL_GPL (resume_device_irqs);/**
kernel/power/suspend.c +1 -1
@@ -293,7 +293,7 @@ int enter_state(suspend_state_t state)*/ int pm_suspend (suspend_state_t state) { -if (state >PM_SUSPEND_ON && state <=PM_SUSPEND_MAX ) +if (state >PM_SUSPEND_ON && state <PM_SUSPEND_MAX )return enter_state (state);return -EINVAL ; }
lib/nlattr.c +1 -0
@@ -20,6 +20,7 @@ static u16 nla_attr_minlen[NLA_TYPE_MAX+1] __read_mostly = { [NLA_U16] = sizeof(u16), [NLA_U32] = sizeof(u32), [NLA_U64] = sizeof(u64), + [NLA_MSECS] = sizeof(u64), [NLA_NESTED] = NLA_HDRLEN, };
mm/vmalloc.c +50 -17
111 lines not on this page · raw message
net/bluetooth/rfcomm/tty.c +0 -4
@@ -844,10 +844,6 @@ static int rfcomm_tty_ioctl(struct tty_struct *tty, struct file *filp, unsignedBT_DBG ("TIOCMIWAIT" );break ; -case TIOCGICOUNT : -BT_DBG ("TIOCGICOUNT" ); -break ; -case TIOCGSERIAL :BT_ERR ("TIOCGSERIAL is not supported" );return -ENOIOCTLCMD ;
net/ipv6/udp.c +1 -1
@@ -1141,7 +1141,7 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, int features) skb->ip_summed =CHECKSUM_NONE ;/* Check if there is enough headroom to insert fragment header. */ -if ((skb_headroom (skb) < frag_hdr_sz) && +if ((skb_mac_header (skb) < skb->head + frag_hdr_sz) &&pskb_expand_head (skb, frag_hdr_sz,0 ,GFP_ATOMIC )) goto out;
net/sunrpc/auth_unix.c +3 -0
@@ -129,6 +129,9 @@ unx_match(struct auth_cred *acred, struct rpc_cred *rcred, int flags)for (i =0 ; i < groups ; i++)if (cred->uc_gids[i] !=GROUP_AT (acred->group_info, i))return 0 ; +if (groups <NFS_NGROUPS && + cred->uc_gids[groups] !=NOGROUP ) +return 0 ;return 1 ; }
scripts/Kbuild.include +5 -0
@@ -118,6 +118,11 @@ cc-option-yn = $(call try-run,\ cc-option-align = $(subst -functions=0,,\ $(call cc-option,-falign-functions=0,-malign-functions=0)) +# cc-disable-warning +# Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable) +cc-disable-warning = $(call try-run,\ + $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -W$(strip $(1)) -c -xc /dev/null -o "$$TMP",-Wno-$(strip $(1))) + # cc-version # Usage gcc-ver := $(call cc-version) cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
sound/pci/hda/patch_realtek.c +0 -1
@@ -12664,7 +12664,6 @@ static struct snd_pci_quirk alc268_cfg_tbl[] = {SND_PCI_QUIRK (0x1025 ,0x015b ,"Acer Aspire One" ,ALC268_ACER_ASPIRE_ONE ),SND_PCI_QUIRK (0x1028 ,0x0253 ,"Dell OEM" ,ALC268_DELL ), -SND_PCI_QUIRK (0x1028 ,0x02b0 ,"Dell Inspiron 910" ,ALC268_AUTO ),SND_PCI_QUIRK_MASK (0x1028 ,0xfff0 ,0x02b0 , "Dell Inspiron Mini9/Vostro A90", ALC268_DELL),/* almost compatible with toshiba but with optional digital outs;
sound/soc/codecs/wm8940.c +1 -0
@@ -472,6 +472,7 @@ static int wm8940_set_bias_level(struct snd_soc_codec *codec, ret =snd_soc_write (codec,WM8940_POWER1 , pwr_reg);break ; } + codec->bias_level = level;return ret; }