Linux 3.0.81
Greg KH
maintainerI'm announcing the release of the 3.0.81 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.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=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/mach-kirkwood/ts219-setup.c | 2 arch/arm/plat-orion/common.c | 12 ++-- arch/avr32/kernel/module.c | 2 arch/um/include/asm/pgtable.h | 2 drivers/ata/libata-core.c | 6 ++ drivers/block/brd.c | 4 - drivers/gpu/drm/radeon/radeon_device.c | 19 +++---- drivers/platform/x86/thinkpad_acpi.c | 7 ++ drivers/staging/vt6656/hostap.c | 2 drivers/tty/n_tty.c | 8 +++ drivers/usb/atm/cxacru.c | 3 - drivers/usb/core/quirks.c | 3 + drivers/usb/host/uhci-hub.c | 3 - drivers/usb/serial/ftdi_sio.c | 2 drivers/usb/serial/ftdi_sio_ids.h | 2 drivers/usb/serial/io_ti.c | 3 + drivers/usb/serial/option.c | 13 +++-- drivers/xen/events.c | 19 ++++++- fs/cifs/cifs_dfs_ref.c | 4 + fs/cifs/inode.c | 3 - fs/fat/inode.c | 15 +++++- fs/jfs/inode.c | 2 fs/jfs/jfs_logmgr.c | 3 - fs/nilfs2/inode.c | 27 +++++++++-- fs/ocfs2/extent_map.c | 2 include/linux/wait.h | 16 ++++-- lib/klist.c | 2 mm/huge_memory.c | 7 ++ mm/migrate.c | 2 mm/mmu_notifier.c | 80 ++++++++++++++++----------------- net/mac80211/iface.c | 9 +++ sound/usb/card.h | 1 sound/usb/format.c | 6 ++ sound/usb/quirks.c | 6 ++ 35 files changed, 207 insertions(+), 92 deletions(-)
Alan Stern (1):
USB: UHCI: fix for suspend of virtual HP controller
Alex Deucher (1):
drm/radeon: fix card_posted check for newer asics
Aneesh Kumar K.V (1):
mm/THP: use pmd_populate() to update the pmd with pgtable_t pointer
Brian Behlendorf (1):
drivers/block/brd.c: fix brd_lookup_page() race
Dan Carpenter (1):
USB: cxacru: potential underflow in cxacru_cm_get_array()
Dan Williams (1):
USB: option: add device IDs for Dell 5804 (Novatel E371) WWAN card
Dave Kleikamp (1):
jfs: fix a couple races
Gomella, Andrew (NIH/NHLBI) [F] (1):
USB: ftdi_sio: Add support for Newport CONEX motor drivers
Greg Kroah-Hartman (1):
Linux 3.0.81
Gregory CLEMENT (1):
ARM: plat-orion: Fix num_resources and id for ge10 and ge11
Hans-Christian Egtvedt (1):
avr32: fix relocation check for signed 18-bit offset
Hema Prathaban (1):
staging: vt6656: use free_netdev instead of kfree
Imre Deak (1):
wait: fix false timeouts when using wait_event_timeout()
Jeff Layton (2):
cifs: only set ops for inodes in I_NEW state
cifs: fix potential buffer overrun when composing a new options string
Johannes Berg (1):
mac80211: close AP_VLAN interfaces before unregistering all
Joseph Qi (1):
ocfs2: goto out_unlock if ocfs2_get_clusters_nocache() failed in ocfs2_fiemap()
Keir Fraser (1):
xen/events: Handle VIRQ_TIMER before any other hardirq in event loop.
Leonid Yegoshin (1):
mm compaction: fix of improper cache flush in migration code
Manoj Iyer (1):
thinkpad-acpi: recognize latest V-Series using DMI_BIOS_VENDOR
Martin Michlmayr (1):
Kirkwood: Enable PCIe port 1 on QNAP TS-11x/TS-21x
OGAWA Hirofumi (1):
fat: fix possible overflow for fat_clusters
Oliver Neukum (1):
USB: reset resume quirk needed by a hub
Richard Weinberger (1):
um: Serve io_remap_pfn_range()
Ryusuke Konishi (1):
nilfs2: fix issue of nilfs_set_page_dirty() for page at EOF boundary
Schemmel Hans-Christoph (1):
USB: Blacklisted Cinterion's PLxx WWAN Interface
Teppo Kotilainen (1):
usb: option: Add Telewell TW-LTE 4G
Vincent Pelletier (1):
libata: make ata_exec_internal_sg honor DMADIR
Wang YanQing (1):
TTY: Fix tty miss restart after we turn off flow-control
Wolfgang Frisch (1):
USB: io_ti: Fix NULL dereference in chase_port()
Xi Wang (2):
ALSA: usb-audio: fix possible hang and overflow in parse_uac2_sample_rate_range()
ALSA: usb-audio: avoid integer overflow in create_fixed_stream_quirk()
Xiao Guangrong (1):
mm: mmu_notifier: re-fix freed page still mapped in secondary MMU
wang, biao (1):
klist: del waiter from klist_remove_waiters before wakeup waitting process
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 80 +SUBLEVEL = 81 EXTRAVERSION = NAME = Sneaky Weasel
arch/arm/mach-kirkwood/ts219-setup.c +1 -1
@@ -124,7 +124,7 @@ static void __init qnap_ts219_init(void)static int __init ts219_pci_init (void ) {if (machine_is_ts219 ()) -kirkwood_pcie_init (KW_PCIE0 ); +kirkwood_pcie_init (KW_PCIE1 |KW_PCIE0 );return 0 ; }
arch/arm/plat-orion/common.c +6 -6
@@ -343,7 +343,7 @@ static struct resource orion_ge10_shared_resources[] = {static struct platform_device orion_ge10_shared = { .name =MV643XX_ETH_SHARED_NAME , - .id =1 , + .id =2 , .dev = { .platform_data = &orion_ge10_shared_data, },
@@ -358,8 +358,8 @@ static struct resource orion_ge10_resources[] = {static struct platform_device orion_ge10 = { .name =MV643XX_ETH_NAME , - .id =1 , - .num_resources =2 , + .id =2 , + .num_resources =1 , .resource = orion_ge10_resources, .dev = { .coherent_dma_mask =DMA_BIT_MASK (32 ),
@@ -397,7 +397,7 @@ static struct resource orion_ge11_shared_resources[] = {static struct platform_device orion_ge11_shared = { .name =MV643XX_ETH_SHARED_NAME , - .id =1 , + .id =3 , .dev = { .platform_data = &orion_ge11_shared_data, },
@@ -412,8 +412,8 @@ static struct resource orion_ge11_resources[] = {static struct platform_device orion_ge11 = { .name =MV643XX_ETH_NAME , - .id =1 , - .num_resources =2 , + .id =3 , + .num_resources =1 , .resource = orion_ge11_resources, .dev = { .coherent_dma_mask =DMA_BIT_MASK (32 ),
arch/avr32/kernel/module.c +1 -1
@@ -271,7 +271,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab,break ;case R_AVR32_GOT18SW :if ((relocation &0xfffe0003 ) !=0 - && (relocation &0xfffc0003 ) !=0xffff0000 ) + && (relocation &0xfffc0000 ) !=0xfffc0000 )return reloc_overflow (module,"R_AVR32_GOT18SW" , relocation); relocation >>=2 ;
arch/um/include/asm/pgtable.h +2 -0
@@ -69,6 +69,8 @@ extern unsigned long end_iomem;#define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED)#define PAGE_KERNEL_EXEC __pgprot(__PAGE_KERNEL_EXEC) +#define io_remap_pfn_range remap_pfn_range +/* * The i386 can't do page protection for execute, and considers that the same * are read.
drivers/ata/libata-core.c +6 -0
@@ -1599,6 +1599,12 @@ unsigned ata_exec_internal_sg(struct ata_device *dev, qc->tf = *tf;if (cdb)memcpy (qc->cdb, cdb,ATAPI_CDB_LEN ); + +/* some SATA bridges need us to indicate data xfer direction */ +if (tf->protocol ==ATAPI_PROT_DMA && (dev->flags &ATA_DFLAG_DMADIR ) && + dma_dir ==DMA_FROM_DEVICE ) + qc->tf.feature |=ATAPI_DMADIR ; + qc->flags |=ATA_QCFLAG_RESULT_TF ; qc->dma_dir = dma_dir;if (dma_dir !=DMA_NONE ) {
drivers/block/brd.c +2 -2
@@ -117,13 +117,13 @@ static struct page *brd_insert_page(struct brd_device *brd, sector_t sector)spin_lock (&brd->brd_lock); idx = sector >>PAGE_SECTORS_SHIFT ; + page->index = idx;if (radix_tree_insert (&brd->brd_pages, idx, page)) {__free_page (page); page =radix_tree_lookup (&brd->brd_pages, idx);BUG_ON (!page);BUG_ON (page->index != idx); - }else - page->index = idx; + }spin_unlock (&brd->brd_lock);radix_tree_preload_end ();
drivers/gpu/drm/radeon/radeon_device.c +9 -10
@@ -352,18 +352,17 @@ bool radeon_card_posted(struct radeon_device *rdev)uint32_t reg;/* first check CRTCs */ -if (ASIC_IS_DCE41 (rdev)) { +if (ASIC_IS_DCE4 (rdev)) { reg =RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC0_REGISTER_OFFSET ) |RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC1_REGISTER_OFFSET ); -if (reg &EVERGREEN_CRTC_MASTER_EN ) -return true; - }else if (ASIC_IS_DCE4 (rdev)) { - reg =RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC0_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC1_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC2_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC3_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC4_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC5_REGISTER_OFFSET ); +if (rdev->num_crtc >=4 ) { + reg |=RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC2_REGISTER_OFFSET ) | +RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC3_REGISTER_OFFSET ); + } +if (rdev->num_crtc >=6 ) { + reg |=RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC4_REGISTER_OFFSET ) | +RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC5_REGISTER_OFFSET ); + }if (reg &EVERGREEN_CRTC_MASTER_EN )return true; }else if (ASIC_IS_AVIVO (rdev)) {
drivers/platform/x86/thinkpad_acpi.c +7 -0
@@ -8656,6 +8656,13 @@ static int __must_check __init get_thinkpad_model_data( tp->model_str =kstrdup (s,GFP_KERNEL );if (!tp->model_str)return -ENOMEM ; + }else { + s =dmi_get_system_info (DMI_BIOS_VENDOR ); +if (s && !(strnicmp (s,"Lenovo" ,6 ))) { + tp->model_str =kstrdup (s,GFP_KERNEL ); +if (!tp->model_str) +return -ENOMEM ; + } } s =dmi_get_system_info (DMI_PRODUCT_NAME );
drivers/staging/vt6656/hostap.c +1 -1
@@ -153,7 +153,7 @@ static int hostap_disable_hostapd(PSDevice pDevice, int rtnl_locked)DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "%s: Netdevice %s unregistered\n" , pDevice->dev->name, pDevice->apdev->name); } -kfree (pDevice->apdev); +free_netdev (pDevice->apdev); pDevice->apdev =NULL ; pDevice->bEnable8021x = FALSE; pDevice->bEnableHostWEP = FALSE;
drivers/tty/n_tty.c +8 -0
@@ -1531,6 +1531,14 @@ static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old) tty->real_raw =0 ; }n_tty_set_room (tty); +/* +* Fix tty hang when I_IXON(tty) is cleared, but the tty +* been stopped by STOP_CHAR(tty) before it. +*/ +if (!I_IXON (tty) && old && (old->c_iflag &IXON ) && !tty->flow_stopped) { +start_tty (tty); + } +/* The termios change make the tty ready for I/O */ wake_up_interruptible (&tty->write_wait);wake_up_interruptible (&tty->read_wait);
drivers/usb/atm/cxacru.c +2 -1
@@ -686,7 +686,8 @@ static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_requ {int ret, len;__le32 *buf; -int offb, offd; +int offb; +unsigned int offd;const int stride =CMD_PACKET_SIZE / (4 *2 ) -1 ;int buflen = ((size -1 ) / stride +1 + size *2 ) *4 ;
drivers/usb/core/quirks.c +3 -0
@@ -110,6 +110,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Edirol SD-20 */ { USB_DEVICE(0x0582, 0x0027), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Alcor Micro Corp. Hub */ + { USB_DEVICE(0x058f, 0x9254), .driver_info = USB_QUIRK_RESET_RESUME }, + /* appletouch */ { USB_DEVICE(0x05ac, 0x021a), .driver_info = USB_QUIRK_RESET_RESUME },
drivers/usb/host/uhci-hub.c +2 -1
@@ -221,7 +221,8 @@ static int uhci_hub_status_data(struct usb_hcd *hcd, char *buf)/* auto-stop if nothing connected for 1 second */ if (any_ports_active (uhci)) uhci->rh_state =UHCI_RH_RUNNING ; -else if (time_after_eq (jiffies, uhci->auto_stop_time)) +else if (time_after_eq (jiffies, uhci->auto_stop_time) && + !uhci->wait_for_hp)suspend_rh (uhci,UHCI_RH_AUTO_STOPPED );break ;
drivers/usb/serial/ftdi_sio.c +2 -0
@@ -197,6 +197,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GBM_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GBM_BOOST_PID) }, { USB_DEVICE(NEWPORT_VID, NEWPORT_AGILIS_PID) }, + { USB_DEVICE(NEWPORT_VID, NEWPORT_CONEX_CC_PID) }, + { USB_DEVICE(NEWPORT_VID, NEWPORT_CONEX_AGP_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SPROG_II) },
drivers/usb/serial/ftdi_sio_ids.h +2 -0
@@ -772,6 +772,8 @@*/ #define NEWPORT_VID 0x104D#define NEWPORT_AGILIS_PID 0x3000 +#define NEWPORT_CONEX_CC_PID 0x3002 +#define NEWPORT_CONEX_AGP_PID 0x3006/* Interbiometrics USB I/O Board */ /* Developed for Interbiometrics by Rudolf Gugler */
drivers/usb/serial/io_ti.c +3 -0
@@ -558,6 +558,9 @@ static void chase_port(struct edgeport_port *port, unsigned long timeout,wait_queue_t wait;unsigned long flags; +if (!tty) +return ; +if (!timeout) timeout = (HZ *EDGE_CLOSING_WAIT )/100 ;
drivers/usb/serial/option.c +9 -4
@@ -196,6 +196,7 @@ static void option_instat_callback(struct urb *urb);#define DELL_PRODUCT_5800_MINICARD_VZW 0x8195/* Novatel E362 */ #define DELL_PRODUCT_5800_V2_MINICARD_VZW 0x8196/* Novatel E362 */ +#define DELL_PRODUCT_5804_MINICARD_ATT 0x819b/* Novatel E371 */ #define KYOCERA_VENDOR_ID 0x0c88#define KYOCERA_PRODUCT_KPC650 0x17da
@@ -341,8 +342,8 @@ static void option_instat_callback(struct urb *urb);#define CINTERION_PRODUCT_EU3_E 0x0051#define CINTERION_PRODUCT_EU3_P 0x0052#define CINTERION_PRODUCT_PH8 0x0053 -#define CINTERION_PRODUCT_AH6 0x0055 -#define CINTERION_PRODUCT_PLS8 0x0060 +#define CINTERION_PRODUCT_AHXX 0x0055 +#define CINTERION_PRODUCT_PLXX 0x0060/* Olivetti products */ #define OLIVETTI_VENDOR_ID 0x0b3c
@@ -771,6 +772,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(DELL_VENDOR_ID, DELL_PRODUCT_5730_MINICARD_VZW) }, /* Dell Wireless 5730 Mobile Broadband EVDO/HSPA Mini-Card */ { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5800_MINICARD_VZW, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5800_V2_MINICARD_VZW, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5804_MINICARD_ATT, 0xff, 0xff, 0xff) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_E100A) }, /* ADU-E100, ADU-310 */ { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_500A) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_620UW) },
@@ -966,6 +968,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0330, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0395, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0412, 0xff, 0xff, 0xff), /* Telewell TW-LTE 4G */ + .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0414, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0417, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1008, 0xff, 0xff, 0xff),
@@ -1264,8 +1268,9 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_EU3_E) }, { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_EU3_P) }, { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_PH8) }, - { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_AH6) }, - { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_PLS8) }, + { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_AHXX) }, + { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_PLXX), + .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_HC28_MDM) }, { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_HC28_MDMNET) }, { USB_DEVICE(SIEMENS_VENDOR_ID, CINTERION_PRODUCT_HC25_MDM) },
drivers/xen/events.c +15 -4
@@ -1153,7 +1153,7 @@ static void __xen_evtchn_do_upcall(void) {int start_word_idx, start_bit_idx;int word_idx, bit_idx; -int i; +int i, irq;int cpu =get_cpu ();struct shared_info *s = HYPERVISOR_shared_info;struct vcpu_info *vcpu_info =__this_cpu_read (xen_vcpu);
@@ -1161,6 +1161,8 @@ static void __xen_evtchn_do_upcall(void) do { unsigned long pending_words; + unsigned long pending_bits; + struct irq_desc *desc; vcpu_info->evtchn_upcall_pending = 0;
@@ -1171,6 +1173,17 @@ static void __xen_evtchn_do_upcall(void)/* Clear master flag /before/ clearing selector flag. */ wmb ();#endif +if ((irq =per_cpu (virq_to_irq, cpu)[VIRQ_TIMER ]) !=-1 ) { +int evtchn =evtchn_from_irq (irq); + word_idx = evtchn /BITS_PER_LONG ; + pending_bits = evtchn %BITS_PER_LONG ; +if (active_evtchns (cpu, s, word_idx) & (1ULL << pending_bits)) { + desc =irq_to_desc (irq); +if (desc) +generic_handle_irq_desc (irq, desc); + } + } + pending_words =xchg (&vcpu_info->evtchn_pending_sel,0 ); start_word_idx =__this_cpu_read (current_word_idx);
@@ -1179,7 +1192,6 @@ static void __xen_evtchn_do_upcall(void) word_idx = start_word_idx;for (i =0 ; pending_words !=0 ; i++) { -unsigned long pending_bits;unsigned long words; words =MASK_LSBS (pending_words, word_idx);
@@ -1208,8 +1220,7 @@ static void __xen_evtchn_do_upcall(void) do { unsigned long bits; - int port, irq; - struct irq_desc *desc; + int port; bits = MASK_LSBS(pending_bits, bit_idx);
fs/cifs/cifs_dfs_ref.c +3 -1
@@ -18,6 +18,7 @@#include <linux/slab.h> #include <linux/vfs.h> #include <linux/fs.h> +#include <linux/inet.h> #include "cifsglob.h" #include "cifsproto.h" #include "cifsfs.h"
@@ -149,7 +150,8 @@ char *cifs_compose_mount_options(const char *sb_mountdata,* assuming that we have 'unc=' and 'ip=' in * the original sb_mountdata */ - md_len =strlen (sb_mountdata) + rc +strlen (ref->node_name) +12 ; + md_len =strlen (sb_mountdata) + rc +strlen (ref->node_name) +12 + +INET6_ADDRSTRLEN ; mountdata =kzalloc (md_len+1 ,GFP_KERNEL );if (mountdata ==NULL ) { rc = -ENOMEM ;
fs/cifs/inode.c +2 -1
@@ -173,7 +173,8 @@ cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr)if (fattr->cf_flags &CIFS_FATTR_DFS_REFERRAL ) inode->i_flags |=S_AUTOMOUNT ; -cifs_set_ops (inode); +if (inode->i_state &I_NEW ) +cifs_set_ops (inode); }void
fs/fat/inode.c +14 -1
@@ -1236,6 +1236,19 @@ static int fat_read_root(struct inode *inode)return 0 ; } +static unsigned long calc_fat_clusters (struct super_block *sb) +{ +struct msdos_sb_info *sbi =MSDOS_SB (sb); + +/* Divide first to avoid overflow */ +if (sbi->fat_bits !=12 ) { +unsigned long ent_per_sec = sb->s_blocksize *8 / sbi->fat_bits; +return ent_per_sec * sbi->fat_length; + } + +return sbi->fat_length * sb->s_blocksize *8 / sbi->fat_bits; +} +/* * Read the super block of an MS-DOS FS. */
@@ -1433,7 +1446,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat, sbi->fat_bits = (total_clusters >MAX_FAT12 ) ?16 :12 ;/* check that FAT table does not overflow */ - fat_clusters = sbi->fat_length * sb->s_blocksize *8 / sbi->fat_bits; + fat_clusters =calc_fat_clusters (sb); total_clusters =min (total_clusters, fat_clusters -FAT_START_ENT );if (total_clusters >MAX_FAT (sb)) {if (!silent)
fs/jfs/inode.c +1 -1
@@ -125,7 +125,7 @@ int jfs_write_inode(struct inode *inode, struct writeback_control *wbc) {int wait = wbc->sync_mode ==WB_SYNC_ALL ; -if (test_cflag (COMMIT_Nolink, inode)) +if (inode->i_nlink ==0 )return 0 ;/* * If COMMIT_DIRTY is not set, the inode isn't really dirty.
fs/jfs/jfs_logmgr.c +2 -1
@@ -1057,7 +1057,8 @@ static int lmLogSync(struct jfs_log * log, int hard_sync)*/ void jfs_syncpt (struct jfs_log *log,int hard_sync) {LOG_LOCK (log); -lmLogSync (log, hard_sync); +if (!test_bit (log_QUIESCE, &log->flag)) +lmLogSync (log, hard_sync);LOG_UNLOCK (log); }
fs/nilfs2/inode.c +23 -4
@@ -195,13 +195,32 @@ static int nilfs_writepage(struct page *page, struct writeback_control *wbc)static int nilfs_set_page_dirty (struct page *page) { -int ret =__set_page_dirty_buffers (page); +int ret =__set_page_dirty_nobuffers (page); -if (ret) { +if (page_has_buffers (page)) {struct inode *inode = page->mapping->host; -unsigned nr_dirty =1 << (PAGE_SHIFT - inode->i_blkbits); +unsigned nr_dirty =0 ; +struct buffer_head *bh, *head; -nilfs_set_file_dirty (inode, nr_dirty); +/* +* This page is locked by callers, and no other thread +* concurrently marks its buffers dirty since they are +* only dirtied through routines in fs/buffer.c in +* which call sites of mark_buffer_dirty are protected +* by page lock. +*/ + bh = head =page_buffers (page); +do { +/* Do not mark hole blocks dirty */ +if (buffer_dirty (bh) || !buffer_mapped (bh)) +continue ; + +set_buffer_dirty (bh); + nr_dirty++; + }while (bh = bh->b_this_page, bh != head); + +if (nr_dirty) +nilfs_set_file_dirty (inode, nr_dirty); }return ret; }
fs/ocfs2/extent_map.c +1 -1
@@ -791,7 +791,7 @@ int ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, &hole_size, &rec, &is_last);if (ret) {mlog_errno (ret); - goto out; + goto out_unlock; }if (rec.e_blkno ==0ULL ) {
include/linux/wait.h +11 -5
@@ -233,6 +233,8 @@ do { \if (!ret) \break ; \ } \ +if (!ret && (condition)) \ + ret =1 ; \finish_wait (&wq, &__wait); \ }while (0 )
@@ -249,8 +251,9 @@ do { \* wake_up() has to be called after changing any variable that could * change the result of the wait condition. * -* The function returns 0 if the @timeout elapsed, and the remaining -* jiffies if the condition evaluated to true before the timeout elapsed. +* The function returns 0 if the @timeout elapsed, or the remaining +* jiffies (at least 1) if the @condition evaluated to %true before +* the @timeout elapsed. */ #define wait_event_timeout (wq, condition, timeout) \ ({ \
@@ -318,6 +321,8 @@ do { \ ret = -ERESTARTSYS ; \break ; \ } \ +if (!ret && (condition)) \ + ret =1 ; \finish_wait (&wq, &__wait); \ }while (0 )
@@ -334,9 +339,10 @@ do { \* wake_up() has to be called after changing any variable that could * change the result of the wait condition. * -* The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it -* was interrupted by a signal, and the remaining jiffies otherwise -* if the condition evaluated to true before the timeout elapsed. +* Returns: +* 0 if the @timeout elapsed, -%ERESTARTSYS if it was interrupted by +* a signal, or the remaining jiffies (at least 1) if the @condition +* evaluated to %true before the @timeout elapsed. */ #define wait_event_interruptible_timeout (wq, condition, timeout) \ ({ \
lib/klist.c +1 -1
@@ -193,10 +193,10 @@ static void klist_release(struct kref *kref)if (waiter->node != n)continue ; +list_del (&waiter->list); waiter->woken =1 ;mb ();wake_up_process (waiter->process); -list_del (&waiter->list); }spin_unlock (&klist_remove_lock);knode_set_klist (n,NULL );
mm/huge_memory.c +6 -1
@@ -1893,7 +1893,12 @@ static void collapse_huge_page(struct mm_struct *mm,pte_unmap (pte);spin_lock (&mm->page_table_lock);BUG_ON (!pmd_none (*pmd)); -set_pmd_at (mm, address, pmd, _pmd); +/* +* We can only use set_pmd_at when establishing +* hugepmds and never for establishing regular pmds that +* points to regular pagetables. Use pmd_populate for that +*/ +pmd_populate (mm, pmd,pmd_pgtable (_pmd));spin_unlock (&mm->page_table_lock);anon_vma_unlock (vma->anon_vma); goto out;
mm/migrate.c +1 -1
@@ -147,7 +147,7 @@ static int remove_migration_pte(struct page *new, struct vm_area_struct *vma,if (PageHuge (new)) pte =pte_mkhuge (pte);#endif -flush_cache_page (vma, addr,pte_pfn (pte)); +flush_dcache_page (new);set_pte_at (mm, addr, ptep, pte);if (PageHuge (new)) {
mm/mmu_notifier.c +40 -40
122 lines not on this page · raw message
net/mac80211/iface.c +9 -0
@@ -1242,6 +1242,15 @@ void ieee80211_remove_interfaces(struct ieee80211_local *local)ASSERT_RTNL (); +/* +* Close all AP_VLAN interfaces first, as otherwise they +* might be closed while the AP interface they belong to +* is closed, causing unregister_netdevice_many() to crash. +*/ +list_for_each_entry (sdata, &local->interfaces, list) +if (sdata->vif.type ==NL80211_IFTYPE_AP_VLAN ) +dev_close (sdata->dev); +mutex_lock (&local->iflist_mtx);list_for_each_entry_safe (sdata, tmp, &local->interfaces, list) {list_del (&sdata->list);
sound/usb/card.h +1 -0
@@ -1,6 +1,7 @@#ifndef __USBAUDIO_CARD_H#define __USBAUDIO_CARD_H +#define MAX_NR_RATES 1024#define MAX_PACKS 20#define MAX_PACKS_HS (MAX_PACKS * 8)/* in high speed mode */ #define MAX_URBS 8
sound/usb/format.c +5 -1
@@ -226,7 +226,7 @@ static int parse_uac2_sample_rate_range(struct audioformat *fp, int nr_triplets,int min =combine_quad (&data[2 +12 * i]);int max =combine_quad (&data[6 +12 * i]);int res =combine_quad (&data[10 +12 * i]); -int rate; +unsigned int rate;if ((max <0 ) || (min <0 ) || (res <0 ) || (max < min))continue ;
@@ -253,6 +253,10 @@ static int parse_uac2_sample_rate_range(struct audioformat *fp, int nr_triplets, fp->rates |=snd_pcm_rate_to_rate_bit (rate); nr_rates++; +if (nr_rates >=MAX_NR_RATES ) { +snd_printk (KERN_ERR "invalid uac2 rates\n" ); +break ; + }/* avoid endless loop */ if (res ==0 )
sound/usb/quirks.c +5 -1
@@ -131,10 +131,14 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip,unsigned *rate_table =NULL ; fp =kmemdup (quirk->data,sizeof (*fp),GFP_KERNEL ); -if (! fp) { +if (!fp) {snd_printk (KERN_ERR "cannot memdup\n" );return -ENOMEM ; } +if (fp->nr_rates >MAX_NR_RATES ) { +kfree (fp); +return -EINVAL ; + }if (fp->nr_rates >0 ) { rate_table =kmalloc (sizeof (int ) * fp->nr_rates,GFP_KERNEL );if (!rate_table) {