Linux 2.6.28.5
Subsystems (31)
We (the -stable team) are announcing the release of the 2.6.28.5 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.28 kernel series are strongly encouraged to upgrade.
I'll also be replying to this message with a copy of the patch between 2.6.28.4 and 2.6.28.5
The updated 2.6.28.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.28.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.28.y.git;a=summarythanks,
greg k-h
------------
Documentation/filesystems/sysfs-pci.txt | 13 +++ Makefile | 2 arch/ia64/sn/kernel/io_acpi_init.c | 2 arch/ia64/sn/kernel/io_init.c | 2 arch/x86/kernel/apic.c | 2 arch/x86/mm/fault.c | 8 +- drivers/acpi/asus_acpi.c | 16 ++++ drivers/acpi/dock.c | 6 + drivers/acpi/tables.c | 7 + drivers/acpi/tables/tbutils.c | 7 - drivers/acpi/video.c | 29 ++++++-- drivers/ata/sata_via.c | 2 drivers/block/nbd.c | 4 + drivers/char/agp/intel-agp.c | 11 ++- drivers/firewire/fw-ohci.c | 2 drivers/firewire/fw-sbp2.c | 43 +++++++---- drivers/ieee1394/ohci1394.h | 2 drivers/ieee1394/sbp2.c | 10 ++ drivers/md/linear.c | 6 - drivers/md/md.c | 24 +++--- drivers/misc/eeepc-laptop.c | 7 + drivers/misc/panasonic-laptop.c | 2 drivers/misc/sgi-xp/xpc.h | 5 - drivers/misc/sgi-xp/xpc_uv.c | 11 +-- drivers/net/e1000/e1000_main.c | 6 - drivers/net/wireless/ipw2200.c | 28 ++++++- drivers/net/wireless/ipw2200.h | 1 drivers/pci/pci-sysfs.c | 4 - drivers/pci/pcie/aspm.c | 4 - drivers/pci/rom.c | 8 +- drivers/serial/8250_pci.c | 9 ++ drivers/usb/serial/option.c | 93 +++++++++++++++---------- drivers/usb/serial/ti_usb_3410_5052.c | 13 ++- drivers/usb/serial/ti_usb_3410_5052.h | 4 + drivers/usb/storage/scsiglue.c | 2 drivers/usb/storage/unusual_devs.h | 15 ---- fs/binfmt_elf.c | 14 +++ fs/seq_file.c | 115 ++++++++++++++++---------------- fs/xfs/linux-2.6/xfs_buf.c | 3 include/acpi/pdc_intel.h | 2 include/linux/module.h | 1 include/linux/pci.h | 2 include/linux/pci_ids.h | 1 include/linux/serial.h | 3 include/linux/wait.h | 11 ++- ipc/shm.c | 4 + kernel/sched.c | 4 - kernel/sys.c | 16 +--- kernel/wait.c | 59 ++++++++++++++-- mm/memory.c | 2 mm/mlock.c | 5 + net/sctp/input.c | 13 +++ sound/pci/hda/patch_realtek.c | 4 + sound/usb/usbaudio.c | 1 54 files changed, 448 insertions(+), 222 deletions(-)
Alan Stern (1):
USB: usb-storage: add Pentax to the bad-vendor list
Alex Chiang (1):
PCI: properly clean up ASPM link state on device remove
Alexey Dobriyan (1):
seq_file: fix big-enough lseek() + read()
Andre Noll (1):
md: Fix a bug in linear.c causing which_dev() to return the wrong device.
Andrew Morton (1):
revert "rlimit: permit setting RLIMIT_NOFILE to RLIM_INFINITY"
Andy Whitcroft (1):
serial: RS485 ioctl structure uses __u32 include linux/types.h
Borislav Petkov (1):
x86: APIC: enable workaround on AMD Fam10h CPUs
Carsten Otte (1):
do_wp_page: fix regression with execute in place
Clemens Ladisch (1):
sound: usb-audio: handle wMaxPacketSize for FIXED_ENDPOINT devices
Corentin Chary (1):
asus_acpi: Add R1F support
Darren Salt (1):
eeepc-laptop: fix oops when changing backlight brightness during eeepc-laptop init
Dean Nelson (1):
sgi-xp: fix writing past the end of kzalloc()'d space
Dirk De Schepper (1):
USB: option: New mobile broadband modems to be supported
Eric Anholt (1):
agp/intel: Fix broken ® symbol in device name.
Eric Biederman (1):
seq_file: move traverse so it can be used from seq_read
Greg Kroah-Hartman (2):
Revert USB: option: add Pantech cards
Linux 2.6.28.5
Helmut Schaa (1):
ipw2200: fix scanning while associated
Holger Macht (1):
ACPI: dock: Don't eval _STA on every show_docked sysfs read
Hugh Dickins (1):
mm: fix error case in mlock downgrade reversion
Jesse Brandeburg (1):
e1000: fix bug with shared interrupt during reset
Johannes Weiner (1):
wait: prevent exclusive waiter starvation
[email protected] (1):
sata_via: Add VT8261 support
Karsten Keil (1):
e1000: Fix PCI enable to honor the need_ioport flag
Lachlan McIlroy (1):
XFS: set b_error from bio error in xfs_buf_bio_end_io
Len Brown (1):
ACPI: disable ACPI cleanly when bad RSDP found
Masami Hiramatsu (1):
prevent kprobes from catching spurious page faults
Matthew Garrett (1):
eeepc-laptop: Add support for extended hotkeys
Michael Bramer (1):
Add support for '8-port RS-232 MIC-3620 from advantech'
Myron Stowe (1):
ACPICA: Fix table entry truncation calculation
NeilBrown (1):
md: Ensure an md array never has too many devices.
Niels de Vos (1):
serial: set correct baud_base for Oxford Semiconductor Ltd EXSYS EX-41092 Dual 16950 Serial adapter
Oliver Neukum (2):
USB: new id for ti_usb_3410_5052 driver
USB: two more usb ids for ti_usb_3410_5052Pallipadi, Venkatesh (1):
ACPI: Enable bit 11 in _PDC to advertise hw coord
Pavel Machek (1):
nbd: do not allow two clients at the same time
Roel Kluin (1):
panasonic-laptop: fix X[ ARRAY_SIZE(X) ]
Roland McGrath (1):
elf core dump: fix get_user use
Rusty Russell (1):
module: remove over-zealous check in __module_get()
Stefan Richter (5):
ieee1394: ohci1394: increase AT req. retries, fix ack_busy_X from Panasonic camcorders and others
firewire: ohci: increase AT req. retries, fix ack_busy_X from Panasonic camcorders and others
firewire: sbp2: fix DMA mapping leak on the failure path
firewire: sbp2: add workarounds for 2nd and 3rd generation iPods
ieee1394: sbp2: add workarounds for 2nd and 3rd generation iPods
Takashi Iwai (3):
ALSA: hda - Add quirk for FSC Amilo Xi2550
ALSA: hda - Add missing COEF initialization for ALC887
ALSA: hda - Add missing initialization for ALC272
Timothy S. Nelson (1):
PCI: return error on failure to read PCI ROMs
Tony Battersby (1):
shm: fix shmctl(SHM_INFO) lockup with !CONFIG_SHMEM
Vlad Yasevich (1):
sctp: Fix another socket race during accept/peeloff
Zhang Rui (1):
ACPI: video: Fix reversed brightness behavior on ThinkPad SL series
Zhao Yakui (2):
ACPI: Skip the first two elements in the _BCL package
ACPI: proc_dir_entry 'video/VGA' already registered
Zhenyu Wang (1):
agp/intel: add support for G41 chipset
Documentation/filesystems/sysfs-pci.txt +12 -1
@@ -9,6 +9,7 @@ that support it. For example, a given bus might look like this: | |-- class | |-- config | |-- device + | |-- enable | |-- irq | |-- local_cpus | |-- resource
@@ -32,6 +33,7 @@ files, each with their own function. class PCI class (ascii, ro) config PCI config space (binary, rw) device PCI device (ascii, ro) + enable Whether the device is enabled (ascii, rw) irq IRQ number (ascii, ro) local_cpus nearby CPU mask (cpumask, ro) resource PCI resource host addresses (ascii, ro)
@@ -57,10 +59,19 @@ used to do actual device programming from userspace. Note that some platforms don't support mmapping of certain resources, so be sure to check the return value from any attempted mmap. +The 'enable' file provides a counter that indicates how many times the device +has been enabled. If the 'enable' file currently returns '4', and a '1' is +echoed into it, it will then return '5'. Echoing a '0' into it will decrease +the count. Even when it returns to 0, though, some of the initialisation +may not be reversed. + The 'rom' file is special in that it provides read-only access to the device's ROM file, if available. It's disabled by default, however, so applications should write the string "1" to the file to enable it before attempting a read -call, and disable it following the access by writing "0" to the file. +call, and disable it following the access by writing "0" to the file. Note +that the device must be enabled for a rom read to return data succesfully. +In the event a driver is not bound to the device, it can be enabled using the +'enable' file, documented above. Accessing legacy resources through sysfs ----------------------------------------
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 28 -EXTRAVERSION = .4 +EXTRAVERSION = .5 NAME = Erotic Pickled Herring # *DOCUMENTATION*
arch/ia64/sn/kernel/io_acpi_init.c +1 -1
@@ -434,7 +434,7 @@ sn_acpi_slot_fixup(struct pci_dev *dev) size =pci_resource_len (dev,PCI_ROM_RESOURCE ); addr =ioremap (pcidev_info->pdi_pio_mapped_addr[PCI_ROM_RESOURCE ], size); - image_size =pci_get_rom_size (addr, size); + image_size =pci_get_rom_size (dev, addr, size); dev->resource[PCI_ROM_RESOURCE ].start = (unsigned long ) addr; dev->resource[PCI_ROM_RESOURCE ].end = (unsigned long ) addr + image_size -1 ;
arch/ia64/sn/kernel/io_init.c +1 -1
@@ -269,7 +269,7 @@ sn_io_slot_fixup(struct pci_dev *dev) rom =ioremap (pci_resource_start (dev,PCI_ROM_RESOURCE ), size +1 ); - image_size =pci_get_rom_size (rom, size +1 ); + image_size =pci_get_rom_size (dev, rom, size +1 ); dev->resource[PCI_ROM_RESOURCE ].end = dev->resource[PCI_ROM_RESOURCE ].start + image_size -1 ;
arch/x86/kernel/apic.c +1 -1
@@ -1451,7 +1451,7 @@ static int __init detect_init_APIC(void)switch (boot_cpu_data.x86_vendor) {case X86_VENDOR_AMD :if ((boot_cpu_data.x86 ==6 && boot_cpu_data.x86_model >1 ) || - (boot_cpu_data.x86 ==15 )) + (boot_cpu_data.x86 >=15 ))break ; goto no_apic;case X86_VENDOR_INTEL :
arch/x86/mm/fault.c +6 -2
@@ -601,8 +601,6 @@ void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code) si_code =SEGV_MAPERR ; -if (notify_page_fault (regs)) -return ;if (unlikely (kmmio_fault (regs, address)))return ;
@@ -632,6 +630,9 @@ void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code)if (spurious_fault (address, error_code))return ; +/* kprobes don't want to hook the spurious faults. */ +if (notify_page_fault (regs)) +return ;/* * Don't take the mm semaphore here. If we fixup a prefetch * fault we could otherwise deadlock.
@@ -639,6 +640,9 @@ void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code) goto bad_area_nosemaphore; } +/* kprobes don't want to hook the spurious faults. */ +if (notify_page_fault (regs)) +return ;/* * It's safe to allow irq's after cr2 has been saved and the
drivers/acpi/asus_acpi.c +15 -1
@@ -143,6 +143,7 @@ struct asus_hotk {S1300N, S5200N*/ A4S ,/* Z81sp */ F3Sa,/* (Centrino) */ +R1F , END_MODEL } model;/* Models currently supported */ u16 event_count[128 ];/* Count for each event TODO make this better */
@@ -420,7 +421,18 @@ static struct model_data model_conf[END_MODEL] = { .display_get = "\\ADVG", .display_set = "SDSP", }, - + { + .name = "R1F", + .mt_bt_switch = "BLED", + .mt_mled = "MLED", + .mt_wled = "WLED", + .mt_lcd_switch = "\\Q10", + .lcd_status = "\\GP06", + .brightness_set = "SPLV", + .brightness_get = "GPLV", + .display_set = "SDSP", + .display_get = "\\INFB" + } };/* procdir we use */
@@ -1165,6 +1177,8 @@ static int asus_model_match(char *model)return W3V ; else if (strncmp(model, "W5A", 3) == 0) return W5A; + else if (strncmp(model, "R1F", 3) == 0) + return R1F; else if (strncmp(model, "A4S", 3) == 0) return A4S; else if (strncmp(model, "F3Sa", 4) == 0)
drivers/acpi/dock.c +5 -1
@@ -855,10 +855,14 @@ fdd_out:static ssize_t show_docked (struct device *dev,struct device_attribute *attr,char *buf) { +struct acpi_device *tmp; +struct dock_station *dock_station = *((struct dock_station **) dev->platform_data); -return snprintf (buf,PAGE_SIZE ,"%d\n" ,dock_present (dock_station)); +if (ACPI_SUCCESS (acpi_bus_get_device (dock_station->handle, &tmp))) +return snprintf (buf,PAGE_SIZE ,"1\n" ); +return snprintf (buf,PAGE_SIZE ,"0\n" ); } static DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL);
drivers/acpi/tables.c +6 -1
@@ -293,7 +293,12 @@ static void __init check_multiple_madt(void)int __init acpi_table_init (void ) { -acpi_initialize_tables (initial_tables,ACPI_MAX_TABLES ,0 ); +acpi_status status; + + status =acpi_initialize_tables (initial_tables,ACPI_MAX_TABLES ,0 ); +if (ACPI_FAILURE (status)) +return 1 ; +check_multiple_madt ();return 0 ; }
drivers/acpi/tables/tbutils.c +3 -4
@@ -512,10 +512,9 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags)if (ACPI_FAILURE (status)) {ACPI_WARNING ((AE_INFO ,"Truncating %u table entries!" , - (unsigned ) - (acpi_gbl_root_table_list.size - - acpi_gbl_root_table_list. - count))); + (unsigned ) (table_count - + (acpi_gbl_root_table_list. + count -2 ))));break ; } }
drivers/acpi/video.c +25 -4
@@ -36,6 +36,7 @@#include <linux/backlight.h> #include <linux/thermal.h> #include <linux/video_output.h> +#include <linux/sort.h> #include <asm/uaccess.h> #include <acpi/acpi_bus.h>
@@ -631,6 +632,16 @@ acpi_video_bus_DOS(struct acpi_video_bus *video, int bios_flag, int lcd_flag) }/* +* Simple comparison function used to sort backlight levels. +*/ + +static int +acpi_video_cmp_level (const void *a,const void *b) +{ +return *(int *)a - *(int *)b; +} + +/* * Arg: * device : video output device (LCD, CRT, ..) *
@@ -681,6 +692,10 @@ acpi_video_init_brightness(struct acpi_video_device *device) count++; } +/* don't sort the first two brightness levels */ +sort (&br->levels[2 ], count -2 ,sizeof (br->levels[2 ]), + acpi_video_cmp_level,NULL ); +if (count <2 ) goto out_free_levels;
@@ -1005,7 +1020,7 @@ acpi_video_device_brightness_seq_show(struct seq_file *seq, void *offset) }seq_printf (seq,"levels: " ); -for (i =0 ; i < dev->brightness->count; i++) +for (i =2 ; i < dev->brightness->count; i++)seq_printf (seq," %d" , dev->brightness->levels[i]);seq_printf (seq,"\ncurrent: %d\n" , dev->brightness->curr);
@@ -1044,7 +1059,7 @@ acpi_video_device_write_brightness(struct file *file,return -EFAULT ;/* validate through the list of available levels */ -for (i =0 ; i < dev->brightness->count; i++) +for (i =2 ; i < dev->brightness->count; i++)if (level == dev->brightness->levels[i]) {if (ACPI_SUCCESS (acpi_video_device_lcd_set_level (dev, level)))
@@ -1697,7 +1712,7 @@ acpi_video_get_next_level(struct acpi_video_device *device, max = max_below =0 ; min = min_above =255 ;/* Find closest level to level_current */ -for (i =0 ; i < device->brightness->count; i++) { +for (i =2 ; i < device->brightness->count; i++) { l = device->brightness->levels[i];if (abs (l - level_current) <abs (delta)) { delta = l - level_current;
@@ -1707,7 +1722,7 @@ acpi_video_get_next_level(struct acpi_video_device *device, }/* Ajust level_current to closest available level */ level_current += delta; -for (i =0 ; i < device->brightness->count; i++) { +for (i =2 ; i < device->brightness->count; i++) { l = device->brightness->levels[i];if (l < min) min = l;
@@ -1991,6 +2006,12 @@ static int acpi_video_bus_add(struct acpi_device *device) device->pnp.bus_id[3 ] ='0' + instance; instance ++; } +/* a hack to fix the duplicate name "VGA" problem on Pa 3553 */ +if (!strcmp (device->pnp.bus_id,"VGA" )) { +if (instance) + device->pnp.bus_id[3 ] ='0' + instance; + instance++; + } video->device = device;strcpy (acpi_device_name (device),ACPI_VIDEO_BUS_NAME );
drivers/ata/sata_via.c +2 -0
@@ -92,6 +92,8 @@ static const struct pci_device_id svia_pci_tbl[] = { { PCI_VDEVICE(VIA, 0x5372), vt6420 }, { PCI_VDEVICE(VIA, 0x7372), vt6420 }, { PCI_VDEVICE(VIA, 0x5287), vt8251 }, /* 2 sata chnls (Master/Slave) */ + { PCI_VDEVICE(VIA, 0x9000), vt8251 }, + { PCI_VDEVICE(VIA, 0x9040), vt8251 }, { } /* terminate list */ };
drivers/block/nbd.c +4 -0
@@ -406,6 +406,7 @@ static int nbd_do_it(struct nbd_device *lo) ret =sysfs_create_file (&disk_to_dev (lo->disk)->kobj, &pid_attr.attr);if (ret) {printk (KERN_ERR "nbd: sysfs_create_file failed!" ); + lo->pid =0 ;return ret; }
@@ -413,6 +414,7 @@ static int nbd_do_it(struct nbd_device *lo)nbd_end_request (req);sysfs_remove_file (&disk_to_dev (lo->disk)->kobj, &pid_attr.attr); + lo->pid =0 ;return 0 ; }
@@ -648,6 +650,8 @@ static int nbd_ioctl(struct block_device *bdev, fmode_t mode,set_capacity (lo->disk, lo->bytesize >>9 );return 0 ;case NBD_DO_IT : +if (lo->pid) +return -EBUSY ;if (!lo->file)return -EINVAL ; thread =kthread_create (nbd_thread, lo, lo->disk->disk_name);
drivers/char/agp/intel-agp.c +9 -2
@@ -40,6 +40,8 @@#define PCI_DEVICE_ID_INTEL_Q45_IG 0x2E12#define PCI_DEVICE_ID_INTEL_G45_HB 0x2E20#define PCI_DEVICE_ID_INTEL_G45_IG 0x2E22 +#define PCI_DEVICE_ID_INTEL_G41_HB 0x2E30 +#define PCI_DEVICE_ID_INTEL_G41_IG 0x2E32/* cover 915 and 945 variants */ #define IS_I915 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_E7221_HB || \
@@ -63,7 +65,8 @@#define IS_G4X (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGD_E_HB || \ agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q45_HB || \ agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G45_HB || \ - agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_GM45_HB) + agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_GM45_HB || \ + agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G41_HB)extern int agp_memory_reserved;
@@ -1196,6 +1199,7 @@ static void intel_i965_get_gtt_range(int *gtt_offset, int *gtt_size)case PCI_DEVICE_ID_INTEL_IGD_E_HB :case PCI_DEVICE_ID_INTEL_Q45_HB :case PCI_DEVICE_ID_INTEL_G45_HB : +case PCI_DEVICE_ID_INTEL_G41_HB : *gtt_offset = *gtt_size =MB (2 );break ;default :
@@ -2156,13 +2160,15 @@ static const struct intel_driver_description { {PCI_DEVICE_ID_INTEL_Q33_HB ,PCI_DEVICE_ID_INTEL_Q33_IG ,0 ,"Q33" , NULL, &intel_g33_driver }, { PCI_DEVICE_ID_INTEL_GM45_HB, PCI_DEVICE_ID_INTEL_GM45_IG, 0, - "Mobile Intel? GM45 Express", NULL, &intel_i965_driver }, + "Mobile Intel® GM45 Express", NULL, &intel_i965_driver }, { PCI_DEVICE_ID_INTEL_IGD_E_HB, PCI_DEVICE_ID_INTEL_IGD_E_IG, 0, "Intel Integrated Graphics Device", NULL, &intel_i965_driver }, { PCI_DEVICE_ID_INTEL_Q45_HB, PCI_DEVICE_ID_INTEL_Q45_IG, 0, "Q45/Q43", NULL, &intel_i965_driver }, { PCI_DEVICE_ID_INTEL_G45_HB, PCI_DEVICE_ID_INTEL_G45_IG, 0, "G45/G43", NULL, &intel_i965_driver }, + { PCI_DEVICE_ID_INTEL_G41_HB, PCI_DEVICE_ID_INTEL_G41_IG, 0, + "G41", NULL, &intel_i965_driver }, { 0, 0, 0, NULL, NULL, NULL } };
@@ -2360,6 +2366,7 @@ static struct pci_device_id agp_intel_pci_table[] = {ID (PCI_DEVICE_ID_INTEL_IGD_E_HB ),ID (PCI_DEVICE_ID_INTEL_Q45_HB ),ID (PCI_DEVICE_ID_INTEL_G45_HB ), + ID(PCI_DEVICE_ID_INTEL_G41_HB), { } };
drivers/firewire/fw-ohci.c +1 -1
@@ -226,7 +226,7 @@ static inline struct fw_ohci *fw_ohci(struct fw_card *card)#define CONTEXT_DEAD 0x0800#define CONTEXT_ACTIVE 0x0400 -#define OHCI1394_MAX_AT_REQ_RETRIES 0x2 +#define OHCI1394_MAX_AT_REQ_RETRIES 0xf#define OHCI1394_MAX_AT_RESP_RETRIES 0x2#define OHCI1394_MAX_PHYS_RESP_RETRIES 0x8
drivers/firewire/fw-sbp2.c +26 -17
70 lines not on this page · raw message
drivers/ieee1394/ohci1394.h +1 -1
@@ -26,7 +26,7 @@#define OHCI1394_DRIVER_NAME "ohci1394" -#define OHCI1394_MAX_AT_REQ_RETRIES 0x2 +#define OHCI1394_MAX_AT_REQ_RETRIES 0xf#define OHCI1394_MAX_AT_RESP_RETRIES 0x2#define OHCI1394_MAX_PHYS_RESP_RETRIES 0x8#define OHCI1394_MAX_SELF_ID_ERRORS 16
drivers/ieee1394/sbp2.c +10 -0
@@ -395,6 +395,16 @@ static const struct { .model_id = SBP2_ROM_VALUE_WILDCARD, .workarounds = SBP2_WORKAROUND_128K_MAX_TRANS, }, +/* +* iPod 2nd generation: needs 128k max transfer size workaround +* iPod 3rd generation: needs fix capacity workaround +*/ + { + .firmware_revision = 0x0a2700, + .model_id = 0x000000, + .workarounds = SBP2_WORKAROUND_128K_MAX_TRANS | + SBP2_WORKAROUND_FIX_CAPACITY, + },/* iPod 4th generation */ { .firmware_revision = 0x0a2700, .model_id = 0x000021,
drivers/md/linear.c +3 -3
@@ -25,13 +25,13 @@ static inline dev_info_t *which_dev(mddev_t *mddev, sector_t sector) {dev_info_t *hash;linear_conf_t *conf =mddev_to_conf (mddev); +sector_t idx = sector >> conf->sector_shift;/* * sector_div(a,b) returns the remainer and sets a to a/b */ - sector >>= conf->sector_shift; - (void )sector_div (sector, conf->spacing); - hash = conf->hash_table[sector]; + (void )sector_div (idx, conf->spacing); + hash = conf->hash_table[idx];while (sector >= hash->num_sectors + hash->start_sector) hash++;
drivers/md/md.c +14 -10
@@ -1447,6 +1447,11 @@ static int bind_rdev_to_array(mdk_rdev_t * rdev, mddev_t * mddev)if (find_rdev_nr (mddev, rdev->desc_nr))return -EBUSY ; } +if (mddev->max_disks && rdev->desc_nr >= mddev->max_disks) { +printk (KERN_WARNING "md: %s: array is limited to %d devices\n" , +mdname (mddev), mddev->max_disks); +return -EBUSY ; + }bdevname (rdev->bdev,b);while ( (s=strchr (b,'/' )) !=NULL ) *s ='!' ;
@@ -2355,6 +2360,15 @@ static void analyze_sbs(mddev_t * mddev) i =0 ;rdev_for_each (rdev, tmp, mddev) { +if (rdev->desc_nr >= mddev->max_disks || + i > mddev->max_disks) { +printk (KERN_WARNING +"md: %s: %s: only %d devices permitted\n" , +mdname (mddev),bdevname (rdev->bdev, b), + mddev->max_disks); +kick_rdev_from_array (rdev); +continue ; + }if (rdev != freshest)if (super_types[mddev->major_version].validate_super (mddev, rdev)) {
@@ -4448,13 +4462,6 @@ static int hot_add_disk(mddev_t * mddev, dev_t dev)* noticed in interrupt contexts ... */ -if (rdev->desc_nr == mddev->max_disks) { -printk (KERN_WARNING "%s: can not hot-add to full array!\n" , -mdname (mddev)); - err = -EBUSY ; - goto abort_unbind_export; - } - rdev->raid_disk =-1 ;md_update_sb (mddev,1 );
@@ -4468,9 +4475,6 @@ static int hot_add_disk(mddev_t * mddev, dev_t dev)md_new_event (mddev);return 0 ; -abort_unbind_export: -unbind_rdev_from_array (rdev); - abort_export:export_rdev (rdev);return err;
drivers/misc/eeepc-laptop.c +6 -1
@@ -161,6 +161,10 @@ static struct key_entry eeepc_keymap[] = { {KE_KEY, 0x13, KEY_MUTE }, {KE_KEY, 0x14, KEY_VOLUMEDOWN }, {KE_KEY, 0x15, KEY_VOLUMEUP }, + {KE_KEY, 0x1a, KEY_COFFEE }, + {KE_KEY, 0x1b, KEY_ZOOM }, + {KE_KEY, 0x1c, KEY_PROG2 }, + {KE_KEY, 0x1d, KEY_PROG3 }, {KE_KEY, 0x30, KEY_SWITCHVIDEOMODE }, {KE_KEY, 0x31, KEY_SWITCHVIDEOMODE }, {KE_KEY, 0x32, KEY_SWITCHVIDEOMODE },
@@ -510,7 +514,8 @@ static int eeepc_hotk_check(void)static void notify_brn (void ) {struct backlight_device *bd = eeepc_backlight_device; - bd->props.brightness =read_brightness (bd); +if (bd) + bd->props.brightness =read_brightness (bd); }static void eeepc_hotk_notify (acpi_handle handle,u32 event,void *data)
drivers/misc/panasonic-laptop.c +1 -1
@@ -515,7 +515,7 @@ static void acpi_pcc_generate_keyinput(struct pcc_acpi *pcc) hkey_num = result &0xf ; -if (hkey_num <0 || hkey_num >ARRAY_SIZE (pcc->keymap)) { +if (hkey_num <0 || hkey_num >=ARRAY_SIZE (pcc->keymap)) {ACPI_DEBUG_PRINT ((ACPI_DB_ERROR ,"hotkey number out of range: %d\n" , hkey_num));
drivers/misc/sgi-xp/xpc.h +3 -2
@@ -3,7 +3,7 @@* License. See the file "COPYING" in the main directory of this archive * for more details. * -* Copyright (c) 2004-2008 Silicon Graphics, Inc. All Rights Reserved. +* Copyright (c) 2004-2009 Silicon Graphics, Inc. All Rights Reserved. */ /*
@@ -502,7 +502,8 @@ struct xpc_channel_uv {/* partition's notify mq */ struct xpc_send_msg_slot_uv *send_msg_slots; -struct xpc_notify_mq_msg_uv *recv_msg_slots; +void *recv_msg_slots;/* each slot will hold a xpc_notify_mq_msg_uv */ +/* structure plus the user's payload */ struct xpc_fifo_head_uv msg_slot_free_list;struct xpc_fifo_head_uv recv_msg_list;/* deliverable payloads */
drivers/misc/sgi-xp/xpc_uv.c +5 -6
@@ -3,7 +3,7 @@* License. See the file "COPYING" in the main directory of this archive * for more details. * -* Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved. +* Copyright (c) 2008-2009 Silicon Graphics, Inc. All Rights Reserved. */ /*
@@ -825,8 +825,8 @@ xpc_allocate_recv_msg_slot_uv(struct xpc_channel *ch)continue ;for (entry =0 ; entry < nentries; entry++) { - msg_slot = ch_uv->recv_msg_slots + entry * - ch->entry_size; + msg_slot = ch_uv->recv_msg_slots + + entry * ch->entry_size; msg_slot->hdr.msg_slot_number = entry; }
@@ -1123,9 +1123,8 @@ xpc_handle_notify_mq_msg_uv(struct xpc_partition *part,/* we're dealing with a normal message sent via the notify_mq */ ch_uv = &ch->sn.uv; - msg_slot = (struct xpc_notify_mq_msg_uv *)((u64 )ch_uv->recv_msg_slots + - (msg->hdr.msg_slot_number % ch->remote_nentries) * - ch->entry_size); + msg_slot = ch_uv->recv_msg_slots + + (msg->hdr.msg_slot_number % ch->remote_nentries) * ch->entry_size;BUG_ON (msg->hdr.msg_slot_number != msg_slot->hdr.msg_slot_number);BUG_ON (msg_slot->hdr.size !=0 );
drivers/net/e1000/e1000_main.c +3 -3
@@ -31,7 +31,7 @@char e1000_driver_name[] ="e1000" ;static char e1000_driver_string[] ="Intel(R) PRO/1000 Network Driver" ; -#define DRV_VERSION "7.3.20-k3-NAPI" +#define DRV_VERSION "7.3.21-k3-NAPI"const char e1000_driver_version[] =DRV_VERSION ;static const char e1000_copyright[] ="Copyright (c) 1999-2006 Intel Corporation." ;
@@ -921,7 +921,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev, err =pci_enable_device (pdev); }else { bars =pci_select_bars (pdev,IORESOURCE_MEM ); - err =pci_enable_device (pdev); + err =pci_enable_device_mem (pdev); }if (err)return err;
@@ -3732,7 +3732,7 @@ static irqreturn_t e1000_intr(int irq, void *data)struct e1000_hw *hw = &adapter->hw;u32 rctl, icr =er32 (ICR ); -if (unlikely (!icr)) +if (unlikely ((!icr) ||test_bit (__E1000_RESETTING, &adapter->flags)))return IRQ_NONE ;/* Not our interrupt */ /* IMS will not auto-mask if INT_ASSERTED is not set, and if it is
drivers/net/wireless/ipw2200.c +22 -6
@@ -4347,7 +4347,8 @@ static void ipw_handle_missed_beacon(struct ipw_priv *priv,return ; } -if (priv->status &STATUS_SCANNING ) { +if (priv->status &STATUS_SCANNING && + missed_count >IPW_MB_SCAN_CANCEL_THRESHOLD ) {/* Stop scan to keep fw from getting * stuck (only if we aren't roaming -- * otherwise we'll never scan more than 2 or 3
@@ -6277,6 +6278,20 @@ static void ipw_add_scan_channels(struct ipw_priv *priv, } } +static int ipw_passive_dwell_time (struct ipw_priv *priv) +{ +/* staying on passive channels longer than the DTIM interval during a +* scan, while associated, causes the firmware to cancel the scan +* without notification. Hence, don't stay on passive channels longer +* than the beacon interval. +*/ +if (priv->status &STATUS_ASSOCIATED + && priv->assoc_network->beacon_interval >10 ) +return priv->assoc_network->beacon_interval -10 ; +else +return 120 ; +} +static int ipw_request_scan_helper (struct ipw_priv *priv,int type,int direct) {struct ipw_scan_request_ext scan;
@@ -6320,16 +6335,16 @@ static int ipw_request_scan_helper(struct ipw_priv *priv, int type, int direct) scan.full_scan_index =cpu_to_le32 (ieee80211_get_scans (priv->ieee));if (type ==IW_SCAN_TYPE_PASSIVE ) { -IPW_DEBUG_WX ("use passive scanning\n" ); - scan_type =IPW_SCAN_PASSIVE_FULL_DWELL_SCAN ; +IPW_DEBUG_WX ("use passive scanning\n" ); + scan_type =IPW_SCAN_PASSIVE_FULL_DWELL_SCAN ; scan.dwell_time[IPW_SCAN_PASSIVE_FULL_DWELL_SCAN ] = -cpu_to_le16 (120 ); +cpu_to_le16 (ipw_passive_dwell_time (priv));ipw_add_scan_channels (priv, &scan, scan_type); goto send_request; }/* Use active scan by default. */ -if (priv->config &CFG_SPEED_SCAN ) +if (priv->config &CFG_SPEED_SCAN ) scan.dwell_time[IPW_SCAN_ACTIVE_BROADCAST_SCAN ] =cpu_to_le16 (30 );else
@@ -6339,7 +6354,8 @@ static int ipw_request_scan_helper(struct ipw_priv *priv, int type, int direct) scan.dwell_time[IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN ] =cpu_to_le16 (20 ); - scan.dwell_time[IPW_SCAN_PASSIVE_FULL_DWELL_SCAN ] =cpu_to_le16 (120 ); + scan.dwell_time[IPW_SCAN_PASSIVE_FULL_DWELL_SCAN ] = +cpu_to_le16 (ipw_passive_dwell_time (priv)); scan.dwell_time[IPW_SCAN_ACTIVE_DIRECT_SCAN ] =cpu_to_le16 (20 );#ifdef CONFIG_IPW2200_MONITOR
drivers/net/wireless/ipw2200.h +1 -0
@@ -244,6 +244,7 @@ enum connection_manager_assoc_states {#define HOST_NOTIFICATION_S36_MEASUREMENT_REFUSED 31#define HOST_NOTIFICATION_STATUS_BEACON_MISSING 1 +#define IPW_MB_SCAN_CANCEL_THRESHOLD 3#define IPW_MB_ROAMING_THRESHOLD_MIN 1#define IPW_MB_ROAMING_THRESHOLD_DEFAULT 8#define IPW_MB_ROAMING_THRESHOLD_MAX 30
drivers/pci/pci-sysfs.c +2 -2
@@ -777,8 +777,8 @@ pci_read_rom(struct kobject *kobj, struct bin_attribute *bin_attr,return -EINVAL ; rom =pci_map_rom (pdev, &size);/* size starts out as PCI window size */ -if (!rom) -return 0 ; +if (!rom || !size) +return -EIO ;if (off >= size) count =0 ;
drivers/pci/pcie/aspm.c +2 -2
@@ -713,9 +713,9 @@ void pcie_aspm_exit_link_state(struct pci_dev *pdev)/* * All PCIe functions are in one slot, remove one function will remove -* the the whole slot, so just wait +* the whole slot, so just wait until we are the last function left. */ -if (!list_empty (&parent->subordinate->devices)) +if (!list_is_last (&pdev->bus_list, &parent->subordinate->devices)) goto out;/* All functions are removed, so just disable ASPM for the link */
drivers/pci/rom.c +5 -3
@@ -63,7 +63,7 @@ void pci_disable_rom(struct pci_dev *pdev)* The PCI window size could be much larger than the * actual image size. */ -size_t pci_get_rom_size (void __iomem *rom,size_t size) +size_t pci_get_rom_size (struct pci_dev *pdev,void __iomem *rom,size_t size) {void __iomem *image;int last_image;
@@ -72,8 +72,10 @@ size_t pci_get_rom_size(void __iomem *rom, size_t size) do { void __iomem *pds; /* Standard PCI ROMs start out with these bytes 55 AA */ - if (readb(image) != 0x55) + if (readb(image) != 0x55) { + dev_err(&pdev->dev, "Invalid ROM contents\n"); break; + } if (readb(image + 1) != 0xAA) break; /* get the PCI data structure and check its signature */
@@ -159,7 +161,7 @@ void __iomem *pci_map_rom(struct pci_dev *pdev, size_t *size)* size is much larger than the actual size of the ROM. * True size is important if the ROM is going to be copied. */ - *size =pci_get_rom_size (rom, *size); + *size =pci_get_rom_size (pdev, rom, *size);return rom; }
drivers/serial/8250_pci.c +9 -0
@@ -766,6 +766,8 @@ pci_default_setup(struct serial_private *priv, struct pciserial_board *board,#define PCI_SUBDEVICE_ID_OCTPRO422 0x0208#define PCI_SUBDEVICE_ID_POCTAL232 0x0308#define PCI_SUBDEVICE_ID_POCTAL422 0x0408 +#define PCI_VENDOR_ID_ADVANTECH 0x13fe +#define PCI_DEVICE_ID_ADVANTECH_PCI3620 0x3620/* Unknown vendors/cards - this should not be in linux/pci_ids.h */ #define PCI_SUBDEVICE_ID_UNKNOWN_0x1584 0x1584
@@ -2132,6 +2134,10 @@ static int pciserial_resume_one(struct pci_dev *dev)#endif static struct pci_device_id serial_pci_tbl[] = { +/* Advantech use PCI_DEVICE_ID_ADVANTECH_PCI3620 (0x3620) as 'PCI_SUBVENDOR_ID' */ + {PCI_VENDOR_ID_ADVANTECH ,PCI_DEVICE_ID_ADVANTECH_PCI3620 , +PCI_DEVICE_ID_ADVANTECH_PCI3620 ,0x0001 ,0 ,0 , + pbn_b2_8_921600 }, {PCI_VENDOR_ID_V3 ,PCI_DEVICE_ID_V3_V960 ,PCI_SUBVENDOR_ID_CONNECT_TECH ,PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232 ,0 ,0 ,
@@ -2375,6 +2381,9 @@ static struct pci_device_id serial_pci_tbl[] = {* For now just used the hex ID 0x950a. */ {PCI_VENDOR_ID_OXSEMI ,0x950a , +PCI_SUBVENDOR_ID_SIIG ,PCI_SUBDEVICE_ID_SIIG_DUAL_SERIAL ,0 ,0 , + pbn_b0_2_115200 }, + { PCI_VENDOR_ID_OXSEMI, 0x950a,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_b0_2_1130000 }, { PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
drivers/usb/serial/option.c +56 -37
128 lines not on this page · raw message
drivers/usb/serial/ti_usb_3410_5052.c +10 -3
@@ -176,25 +176,32 @@ static unsigned int product_5052_count;/* the array dimension is the number of default entries plus */ /* TI_EXTRA_VID_PID_COUNT user defined entries plus 1 terminating */ /* null entry */ -static struct usb_device_id ti_id_table_3410[1 +TI_EXTRA_VID_PID_COUNT +1 ] = { +static struct usb_device_id ti_id_table_3410[10 +TI_EXTRA_VID_PID_COUNT +1 ] = { {USB_DEVICE (TI_VENDOR_ID ,TI_3410_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_3410_EZ430_ID ) }, + {USB_DEVICE (IBM_VENDOR_ID ,IBM_4543_PRODUCT_ID ) }, + {USB_DEVICE (IBM_VENDOR_ID ,IBM_454B_PRODUCT_ID ) }, + {USB_DEVICE (IBM_VENDOR_ID ,IBM_454C_PRODUCT_ID ) }, }; -static struct usb_device_id ti_id_table_5052[4 +TI_EXTRA_VID_PID_COUNT +1 ] = { +static struct usb_device_id ti_id_table_5052[5 +TI_EXTRA_VID_PID_COUNT +1 ] = { {USB_DEVICE (TI_VENDOR_ID ,TI_5052_BOOT_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_5152_BOOT_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_5052_EEPROM_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_5052_FIRMWARE_PRODUCT_ID ) }, + {USB_DEVICE (IBM_VENDOR_ID ,IBM_4543_PRODUCT_ID ) }, }; -static struct usb_device_id ti_id_table_combined[] = { +static struct usb_device_id ti_id_table_combined[14 +2 *TI_EXTRA_VID_PID_COUNT +1 ] = { {USB_DEVICE (TI_VENDOR_ID ,TI_3410_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_3410_EZ430_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_5052_BOOT_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_5152_BOOT_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_5052_EEPROM_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_5052_FIRMWARE_PRODUCT_ID ) }, + {USB_DEVICE (IBM_VENDOR_ID ,IBM_4543_PRODUCT_ID ) }, + {USB_DEVICE (IBM_VENDOR_ID ,IBM_454B_PRODUCT_ID ) }, + {USB_DEVICE (IBM_VENDOR_ID ,IBM_454C_PRODUCT_ID ) }, { } };
drivers/usb/serial/ti_usb_3410_5052.h +4 -0
@@ -27,7 +27,11 @@/* Vendor and product ids */ #define TI_VENDOR_ID 0x0451 +#define IBM_VENDOR_ID 0x04b3#define TI_3410_PRODUCT_ID 0x3410 +#define IBM_4543_PRODUCT_ID 0x4543 +#define IBM_454B_PRODUCT_ID 0x454b +#define IBM_454C_PRODUCT_ID 0x454c#define TI_3410_EZ430_ID 0xF430/* TI ez430 development tool */ #define TI_5052_BOOT_PRODUCT_ID 0x5052/* no EEPROM, no firmware */ #define TI_5152_BOOT_PRODUCT_ID 0x5152/* no EEPROM, no firmware */
drivers/usb/storage/scsiglue.c +2 -0
@@ -64,6 +64,7 @@*/ #define VENDOR_ID_NOKIA 0x0421#define VENDOR_ID_NIKON 0x04b0 +#define VENDOR_ID_PENTAX 0x0a17#define VENDOR_ID_MOTOROLA 0x22b8/***********************************************************************
@@ -150,6 +151,7 @@ static int slave_configure(struct scsi_device *sdev)switch (le16_to_cpu (us->pusb_dev->descriptor.idVendor)) {case VENDOR_ID_NOKIA :case VENDOR_ID_NIKON : +case VENDOR_ID_PENTAX :case VENDOR_ID_MOTOROLA :if (!(us->fflags & (US_FL_FIX_CAPACITY |US_FL_CAPACITY_OK )))
drivers/usb/storage/unusual_devs.h +0 -15
@@ -1304,21 +1304,6 @@ UNUSUAL_DEV( 0x0a17, 0x0004, 0x1000, 0x1000, US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_FIX_INQUIRY ), - -/* Submitted by Per Winkvist <[email protected]> */ -UNUSUAL_DEV (0x0a17 ,0x006 ,0x0000 ,0xffff , -"Pentax" , -"Optio S/S4" , -US_SC_DEVICE ,US_PR_DEVICE ,NULL , -US_FL_FIX_INQUIRY ), - -/* Reported by Jaak Ristioja <[email protected]> */ -UNUSUAL_DEV (0x0a17 ,0x006e ,0x0100 ,0x0100 , -"Pentax" , -"K10D" , -US_SC_DEVICE ,US_PR_DEVICE ,NULL , -US_FL_FIX_CAPACITY ), -/* These are virtual windows driver CDs, which the zd1211rw driver * automatically converts into WLAN devices. */ UNUSUAL_DEV( 0x0ace, 0x2011, 0x0101, 0x0101,
fs/binfmt_elf.c +12 -2
@@ -1196,9 +1196,11 @@ static unsigned long vma_dump_size(struct vm_area_struct *vma,* check for an ELF header. If we find one, dump the first page to * aid in determining what was mapped here. */ -if (FILTER (ELF_HEADERS ) && vma->vm_file !=NULL && vma->vm_pgoff ==0 ) { +if (FILTER (ELF_HEADERS ) && + vma->vm_pgoff ==0 && (vma->vm_flags &VM_READ )) {u32 __user *header = (u32 __user *) vma->vm_start;u32 word; +mm_segment_t fs =get_fs ();/* * Doing it this way gets the constant folded by GCC. */
@@ -1211,7 +1213,15 @@ static unsigned long vma_dump_size(struct vm_area_struct *vma, magic.elfmag[EI_MAG1 ] =ELFMAG1 ; magic.elfmag[EI_MAG2 ] =ELFMAG2 ; magic.elfmag[EI_MAG3 ] =ELFMAG3 ; -if (get_user (word, header) ==0 && word == magic.cmp) +/* +* Switch to the user "segment" for get_user(), +* then put back what elf_core_dump() had in place. +*/ +set_fs (USER_DS ); +if (unlikely (get_user (word, header))) + word =0 ; +set_fs (fs); +if (word == magic.cmp)return PAGE_SIZE ; }
fs/seq_file.c +58 -57
127 lines not on this page · raw message
fs/xfs/linux-2.6/xfs_buf.c +1 -2
@@ -1114,8 +1114,7 @@ xfs_buf_bio_end_io(unsigned int blocksize = bp->b_target->bt_bsize;struct bio_vec *bvec = bio->bi_io_vec + bio->bi_vcnt -1 ; -if (!test_bit (BIO_UPTODATE , &bio->bi_flags)) - bp->b_error =EIO ; +xfs_buf_ioerror (bp, -error); do { struct page *page = bvec->bv_page;
include/acpi/pdc_intel.h +2 -0
@@ -14,6 +14,7 @@#define ACPI_PDC_SMP_T_SWCOORD (0x0080)#define ACPI_PDC_C_C1_FFH (0x0100)#define ACPI_PDC_C_C2C3_FFH (0x0200) +#define ACPI_PDC_SMP_P_HWCOORD (0x0800)#define ACPI_PDC_EST_CAPABILITY_SMP (ACPI_PDC_SMP_C1PT | \ ACPI_PDC_C_C1_HALT | \
@@ -22,6 +23,7 @@#define ACPI_PDC_EST_CAPABILITY_SWSMP (ACPI_PDC_SMP_C1PT | \ ACPI_PDC_C_C1_HALT | \ ACPI_PDC_SMP_P_SWCOORD | \ + ACPI_PDC_SMP_P_HWCOORD | \ ACPI_PDC_P_FFH)#define ACPI_PDC_C_CAPABILITY_SMP (ACPI_PDC_SMP_C2C3 | \
include/linux/module.h +0 -1
@@ -391,7 +391,6 @@ void symbol_put_addr(void *addr);static inline void __module_get (struct module *module) {if (module) { -BUG_ON (module_refcount (module) ==0 );local_inc (&module->ref[get_cpu ()].count);put_cpu (); }
include/linux/pci.h +1 -1
@@ -651,7 +651,7 @@ int pci_enable_rom(struct pci_dev *pdev);void pci_disable_rom (struct pci_dev *pdev);void __iomem __must_check *pci_map_rom (struct pci_dev *pdev,size_t *size);void pci_unmap_rom (struct pci_dev *pdev,void __iomem *rom); -size_t pci_get_rom_size (void __iomem *rom,size_t size); +size_t pci_get_rom_size (struct pci_dev *pdev,void __iomem *rom,size_t size);/* Power management related routines */ int pci_save_state (struct pci_dev *dev);
include/linux/pci_ids.h +1 -0
@@ -1770,6 +1770,7 @@#define PCI_DEVICE_ID_SIIG_8S_20x_650 0x2081#define PCI_DEVICE_ID_SIIG_8S_20x_850 0x2082#define PCI_SUBDEVICE_ID_SIIG_QUARTET_SERIAL 0x2050 +#define PCI_SUBDEVICE_ID_SIIG_DUAL_SERIAL 0x2530#define PCI_VENDOR_ID_RADISYS 0x1331
include/linux/serial.h +2 -1
@@ -10,8 +10,9 @@#ifndef _LINUX_SERIAL_H#define _LINUX_SERIAL_H -#ifdef __KERNEL__#include <linux/types.h> + +#ifdef __KERNEL__#include <asm/page.h> /*
include/linux/wait.h +9 -2
@@ -132,6 +132,8 @@ static inline void __remove_wait_queue(wait_queue_head_t *head,list_del (&old->task_list); } +void __wake_up_common (wait_queue_head_t *q,unsigned int mode, +int nr_exclusive,int sync,void *key);void __wake_up (wait_queue_head_t *q,unsigned int mode,int nr,void *key);extern void __wake_up_locked (wait_queue_head_t *q,unsigned int mode);extern void __wake_up_sync (wait_queue_head_t *q,unsigned int mode,int nr);
@@ -333,16 +335,19 @@ do { \for (;;) { \prepare_to_wait_exclusive (&wq, &__wait, \TASK_INTERRUPTIBLE ); \ -if (condition) \ +if (condition) { \ +finish_wait (&wq, &__wait); \break ; \ + } \if (!signal_pending (current)) { \schedule (); \continue ; \ } \ ret = -ERESTARTSYS ; \ +abort_exclusive_wait (&wq, &__wait, \ +TASK_INTERRUPTIBLE ,NULL ); \break ; \ } \ -finish_wait (&wq, &__wait); \ }while (0 ) #define wait_event_interruptible_exclusive(wq, condition) \
@@ -431,6 +436,8 @@ extern long interruptible_sleep_on_timeout(wait_queue_head_t *q,void prepare_to_wait (wait_queue_head_t *q,wait_queue_t *wait,int state);void prepare_to_wait_exclusive (wait_queue_head_t *q,wait_queue_t *wait,int state);void finish_wait (wait_queue_head_t *q,wait_queue_t *wait); +void abort_exclusive_wait (wait_queue_head_t *q,wait_queue_t *wait, +unsigned int mode,void *key);int autoremove_wake_function (wait_queue_t *wait,unsigned mode,int sync,void *key);int wake_bit_function (wait_queue_t *wait,unsigned mode,int sync,void *key);
ipc/shm.c +4 -0
@@ -565,11 +565,15 @@ static void shm_get_stat(struct ipc_namespace *ns, unsigned long *rss,struct hstate *h =hstate_file (shp->shm_file); *rss +=pages_per_huge_page (h) * mapping->nrpages; }else { +#ifdef CONFIG_SHMEM struct shmem_inode_info *info =SHMEM_I (inode);spin_lock (&info->lock); *rss += inode->i_mapping->nrpages; *swp += info->swapped;spin_unlock (&info->lock); +#else + *rss += inode->i_mapping->nrpages; +#endif } total++;
kernel/sched.c +2 -2
@@ -4586,8 +4586,8 @@ EXPORT_SYMBOL(default_wake_function);* started to run but is not in state TASK_RUNNING. try_to_wake_up() returns * zero in this (rare) case, and we handle it by continuing to scan the queue. */ -static void __wake_up_common (wait_queue_head_t *q,unsigned int mode, -int nr_exclusive,int sync,void *key) +void __wake_up_common (wait_queue_head_t *q,unsigned int mode, +int nr_exclusive,int sync,void *key) {wait_queue_t *curr, *next;
kernel/sys.c +4 -12
@@ -1447,22 +1447,14 @@ SYSCALL_DEFINE2(setrlimit, unsigned int, resource, struct rlimit __user *, rlim)return -EINVAL ;if (copy_from_user (&new_rlim, rlim,sizeof (*rlim)))return -EFAULT ; +if (new_rlim.rlim_cur > new_rlim.rlim_max) +return -EINVAL ; old_rlim = current->signal->rlim + resource;if ((new_rlim.rlim_max > old_rlim->rlim_max) && !capable (CAP_SYS_RESOURCE ))return -EPERM ; - -if (resource ==RLIMIT_NOFILE ) { -if (new_rlim.rlim_max ==RLIM_INFINITY ) - new_rlim.rlim_max = sysctl_nr_open; -if (new_rlim.rlim_cur ==RLIM_INFINITY ) - new_rlim.rlim_cur = sysctl_nr_open; -if (new_rlim.rlim_max > sysctl_nr_open) -return -EPERM ; - } - -if (new_rlim.rlim_cur > new_rlim.rlim_max) -return -EINVAL ; +if (resource ==RLIMIT_NOFILE && new_rlim.rlim_max > sysctl_nr_open) +return -EPERM ; retval =security_task_setrlimit (resource, &new_rlim);if (retval)
kernel/wait.c +52 -7
81 lines not on this page · raw message
mm/memory.c +1 -1
@@ -1881,7 +1881,7 @@ gotten:* Don't let another task, with possibly unlocked vma, * keep the mlocked page. */ -if (vma->vm_flags &VM_LOCKED ) { +if ((vma->vm_flags &VM_LOCKED ) && old_page) {lock_page (old_page);/* for LRU manipulation */ clear_page_mlock (old_page);unlock_page (old_page);
mm/mlock.c +4 -1
@@ -310,7 +310,10 @@ long mlock_vma_pages_range(struct vm_area_struct *vma, is_vm_hugetlb_page(vma) || vma == get_gate_vma(current))) { -return __mlock_vma_pages_range (vma, start, end,1 ); +__mlock_vma_pages_range (vma, start, end,1 ); + +/* Hide errors from mmap() and other callers */ +return 0 ; }/*
net/sctp/input.c +13 -0
@@ -249,6 +249,19 @@ int sctp_rcv(struct sk_buff *skb)*/ sctp_bh_lock_sock (sk); +if (sk != rcvr->sk) { +/* Our cached sk is different from the rcvr->sk. This is +* because migrate()/accept() may have moved the association +* to a new socket and released all the sockets. So now we +* are holding a lock on the old socket while the user may +* be doing something with the new socket. Switch our veiw +* of the current sk. +*/ +sctp_bh_unlock_sock (sk); + sk = rcvr->sk; +sctp_bh_lock_sock (sk); + } +if (sock_owned_by_user (sk)) {SCTP_INC_STATS_BH (SCTP_MIB_IN_PKT_BACKLOG );sctp_add_backlog (sk, skb);
sound/pci/hda/patch_realtek.c +4 -0
@@ -967,6 +967,7 @@ do_sku:case 0x10ec0267 :case 0x10ec0268 :case 0x10ec0269 : +case 0x10ec0272 :case 0x10ec0660 :case 0x10ec0662 :case 0x10ec0663 :
@@ -995,6 +996,7 @@ do_sku:case 0x10ec0882 :case 0x10ec0883 :case 0x10ec0885 : +case 0x10ec0887 :case 0x10ec0889 :snd_hda_codec_write (codec,0x20 ,0 ,AC_VERB_SET_COEF_INDEX ,7 );
@@ -8463,6 +8465,8 @@ static struct snd_pci_quirk alc883_cfg_tbl[] = {SND_PCI_QUIRK (0x1558 ,0 ,"Clevo laptop" ,ALC883_LAPTOP_EAPD ),SND_PCI_QUIRK (0x15d9 ,0x8780 ,"Supermicro PDSBA" , ALC883_3ST_6ch),SND_PCI_QUIRK (0x161f ,0x2054 ,"Medion laptop" ,ALC883_MEDION ), +SND_PCI_QUIRK (0x1734 ,0x1107 ,"FSC AMILO Xi2550" , +ALC883_FUJITSU_PI2515 ),SND_PCI_QUIRK (0x1734 ,0x1108 ,"Fujitsu AMILO Pi2515" ,ALC883_FUJITSU_PI2515 ),SND_PCI_QUIRK (0x17aa ,0x101e ,"Lenovo 101e" , ALC883_LENOVO_101E_2ch), SND_PCI_QUIRK(0x17aa, 0x2085, "Lenovo NB0763", ALC883_LENOVO_NB0763),
sound/usb/usbaudio.c +1 -0
@@ -2966,6 +2966,7 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip,return -EINVAL ; } alts = &iface->altsetting[fp->altset_idx]; + fp->maxpacksize =le16_to_cpu (get_endpoint (alts,0 )->wMaxPacketSize);usb_set_interface (chip->dev, fp->iface,0 );init_usb_pitch (chip->dev, fp->iface, alts, fp);init_usb_sample_rate (chip->dev, fp->iface, alts, fp, fp->rate_max);