Linux 3.2.75
I'm announcing the release of the 3.2.75 kernel.
All users of the 3.2 kernel series should upgrade.
The updated 3.2.y git tree can be found at:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git
The diff from 3.2.74 is attached to this message.
Ben.
------------
Makefile | 2 +- arch/sh/include/asm/unistd_64.h | 2 +- drivers/ata/libahci.c | 9 ++ drivers/ata/sata_sil.c | 3 + drivers/char/ipmi/ipmi_si_intf.c | 8 +- drivers/gpu/drm/drm_fops.c | 95 +++++++----- drivers/gpu/drm/drm_stub.c | 7 +- drivers/gpu/drm/ttm/ttm_lock.c | 2 +- drivers/gpu/vga/vgaarb.c | 6 +- drivers/isdn/i4l/isdn_ppp.c | 12 +- drivers/md/persistent-data/dm-btree.c | 20 ++- drivers/net/can/sja1000/sja1000.c | 3 + drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 7 +- drivers/net/ethernet/renesas/sh_eth.c | 4 +- drivers/net/macvlan.c | 2 + drivers/net/phy/broadcom.c | 2 +- drivers/net/ppp/ppp_generic.c | 6 +- drivers/net/ppp/pptp.c | 6 + drivers/net/slip/slhc.c | 12 +- drivers/net/slip/slip.c | 2 +- drivers/net/wan/x25_asy.c | 6 +- drivers/parisc/iommu-helpers.h | 15 +- drivers/usb/class/cdc-acm.c | 9 ++ drivers/usb/class/cdc-acm.h | 1 + drivers/usb/class/usblp.c | 2 +- drivers/usb/core/config.c | 3 +- drivers/usb/host/whci/qset.c | 4 + drivers/usb/host/xhci-pci.c | 2 + drivers/usb/host/xhci.c | 18 +++ drivers/usb/host/xhci.h | 1 + drivers/usb/musb/musb_core.c | 11 +- drivers/usb/serial/cp210x.c | 1 - drivers/usb/serial/option.c | 11 ++ drivers/usb/serial/ti_usb_3410_5052.c | 7 +- drivers/usb/serial/ti_usb_3410_5052.h | 4 + fs/9p/vfs_inode.c | 4 +- fs/cachefiles/rdwr.c | 2 +- fs/ext4/ext4.h | 51 +++++- fs/fuse/file.c | 2 +- fs/jbd2/transaction.c | 2 + fs/nfs/inode.c | 6 +- fs/partitions/mac.c | 10 +- fs/splice.c | 8 + fs/sysv/Makefile | 2 +- fs/sysv/inode.c | 10 +- fs/sysv/symlink.c | 20 --- include/drm/drmP.h | 6 + include/linux/ipv6.h | 2 +- include/linux/lockdep.h | 5 + include/net/af_unix.h | 6 +- include/net/ipv6.h | 22 ++- include/net/sock.h | 3 + kernel/sched.c | 7 +- kernel/trace/ring_buffer.c | 12 +- mm/backing-dev.c | 19 ++- mm/hugetlb.c | 8 +- mm/vmstat.c | 6 +- net/ax25/af_ax25.c | 3 + net/bluetooth/sco.c | 3 + net/core/dev.c | 2 +- net/core/scm.c | 2 + net/dccp/ipv6.c | 44 +++--- net/decnet/af_decnet.c | 3 + net/ipv4/af_inet.c | 3 + net/ipv4/igmp.c | 5 +- net/ipv4/ipmr.c | 15 +- net/ipv4/tcp_input.c | 1 + net/ipv6/af_inet6.c | 15 +- net/ipv6/datagram.c | 4 +- net/ipv6/exthdrs.c | 3 +- net/ipv6/inet6_connection_sock.c | 11 +- net/ipv6/ip6mr.c | 17 +- net/ipv6/ipv6_sockglue.c | 36 +++-- net/ipv6/mcast.c | 2 - net/ipv6/netfilter/nf_conntrack_reasm.c | 6 +- net/ipv6/raw.c | 8 +- net/ipv6/reassembly.c | 14 +- net/ipv6/syncookies.c | 2 +- net/ipv6/tcp_ipv6.c | 37 ++--- net/ipv6/udp.c | 8 +- net/irda/af_irda.c | 3 + net/mac80211/mesh_pathtbl.c | 8 +- net/rds/connection.c | 6 - net/rds/send.c | 4 +- net/sctp/auth.c | 4 +- net/sctp/ipv6.c | 8 + net/sctp/socket.c | 12 +- net/unix/af_unix.c | 196 ++++++++++++++++++++---- net/unix/garbage.c | 12 +- sound/pci/rme96.c | 41 +++-- sound/soc/codecs/wm8962.c | 4 +- sound/usb/midi.c | 46 ++++++ sound/usb/quirks-table.h | 11 ++ sound/usb/quirks.c | 1 + sound/usb/usbaudio.h | 1 + 95 files changed, 799 insertions(+), 320 deletions(-)
Aaro Koskinen (1):
broadcom: fix PHY_ID_BCM5481 entry in the id table
Al Viro (2):
fix sysvfs symlinks
9p: ->evict_inode() should kick out ->i_data, not ->i_mapping
Aleksander Morgado (1):
USB: serial: option: add support for Novatel MiFi USB620L
Alexey Khoroshilov (1):
USB: whci-hcd: add check for dma mapping error
Andrew Lunn (1):
ipv4: igmp: Allow removing groups from a removed interface
Ben Hutchings (7):
USB: ti_usb_3410_502: Fix ID table size
xhci: Add XHCI_INTEL_HOST quirk
USB: cdc-acm - Add IGNORE_DEVICE quirk
usb: Use the USB_SS_MULT() macro to decode burst multiplier for log message
isdn_ppp: Add checks for allocation failure in isdn_ppp_open() ppp, slip: Validate VJ compression slot parameters completely Linux 3.2.75
Bjørn Mork (1):
USB: option: add XS Stick W100-2 from 4G Systems
Chunfeng Yun (1):
usb: xhci: fix config fail of FS hub behind a HS hub with MTT
Clemens Ladisch (3):
ALSA: usb-audio: add packet size quirk for the Medeli DD305
ALSA: usb-audio: prevent CH345 multiport output SysEx corruption
ALSA: usb-audio: work around CH345 input SysEx corruption
Daniel Borkmann (1):
net, scm: fix PaX detected msg_controllen overflow in scm_detach_fds
David S. Miller (1):
bluetooth: Validate socket address length in sco_sock_bind().
David Turner (1):
ext4: Fix handling of extended tv_sec
David Woodhouse (1):
USB: ti_usb_3410_5052: Add Honeywell HGI80 ID
Diego Elio Pettenò (1):
USB: serial: ti_usb_3410_5052: add Abbott strip port ID to combined table as well.
Dmitry V. Levin (1):
sh64: fix __NR_fgetxattr
Eric Dumazet (5):
tcp: initialize tp->copied_seq in case of cross SYN connection
ipv6: add complete rcu protection around np->opt
ipv6: sctp: implement sctp_v6_destroy_sock()
ipv6: sctp: clone options to avoid use after free
af_unix: fix a fatal race with bit fields
Geert Uytterhoeven (1):
FS-Cache: Add missing initialization of ret in cachefiles_write_page()
Hannes Frederic Sowa (1):
net: add validation for the socket syscall protocol argument
Jan Kara (3):
vfs: Make sendfile(2) killable even better
vfs: Avoid softlockups with sendfile(2)
jbd2: Fix unreclaimed pages after truncate in data=journal mode
Jan Stancek (1):
ipmi: move timer init to before irq is setup
Jeff Layton (1):
nfs: if we have no valid attrs, then don't declare the attribute cache valid
Jiri Slaby (1):
usblp: do not set TASK_INTERRUPTIBLE before lock
Joe Thornber (1):
dm btree: fix bufio buffer leaks in dm_btree_del() error path
Johannes Berg (1):
mac80211: mesh: fix call_rcu() usage
Jonas Jonsson (1):
USB: cdc_acm: Ignore Infineon Flash Loader utility
Kees Cook (1):
mac: validate mac_partition is within sector
Kirill A. Shutemov (1):
vgaarb: fix signal handling in vga_get()
Konstantin Shkolnyy (1):
USB: cp210x: Remove CP2110 ID from compatibility list
Marcelo Ricardo Leitner (1):
sctp: update the netstamp_needed counter when copying sockets
Michal Hocko (1):
mm, vmstat: allow WQ concurrency to discover memory reclaim doesn't make any progress
Michal Kubeček (1):
ipv6: distinguish frag queues by device for multicast and link-local packets
Mike Snitzer (1):
dm btree: fix leak of bufio-backed block in btree_split_sibling error path
Mikulas Patocka (2):
sata_sil: disable trim
parisc iommu: fix panic due to trying to allocate too large region
Mirza Krak (1):
can: sja1000: clear interrupts on start
Naoya Horiguchi (1):
mm: hugetlb: call huge_pte_alloc() only if ptep is null
Neil Horman (1):
snmp: Remove duplicate OUTMCAST stat increment
Nikolay Aleksandrov (3):
net: fix __netdev_update_features return on ndo_set_features failure
net: ip6mr: fix static mfc/dev leaks on table destruction
net: ipmr: fix static mfc/dev leaks on table destruction
Pavel Machek (1):
atl1c: Improve driver not to do order 4 GFP_ATOMIC allocation
Peter Hurley (2):
wan/x25: Fix use-after-free in x25_asy_open_tty()
locking: Add WARN_ON_ONCE lock assertion
Quentin Casasnovas (1):
RDS: fix race condition when sending a message on unbound socket
Rainer Weikusat (2):
unix: avoid use-after-free in ep_remove_wait_queue
af_unix: Revert 'lock_interruptible' in stream receive code
Rajmohan Mani (1):
xhci: Workaround to get Intel xHCI reset working more reliably
Roman Gushchin (1):
fuse: break infinite loop in fuse_fill_write_pages()
RongQing.Li (1):
dccp: remove unnecessary codes in ipv6.c
Sabrina Dubroca (1):
macvlan: fix leak in macvlan_handle_frame
Sachin Pandhare (1):
ASoC: wm8962: correct addresses for HPF_C_0/1
Sasha Levin (1):
sched/core: Remove false-positive warning from wake_up_process()
Sergei Shtylyov (1):
sh_eth: fix kernel oops in skb_put()
Steven Rostedt (Red Hat) (1):
ring-buffer: Update read stamp with first real commit on page
Takashi Iwai (1):
ALSA: rme96: Fix unexpected volume reset after rate changes
Thomas Hellstrom (2):
drm/ttm: Fixed a read/write lock imbalance
drm: Fix an unwanted master inheritance v2
Uwe Kleine-König (1):
usb: musb: core: fix order of arguments to ulpi write callback
WANG Cong (2):
ip6mr: call del_timer_sync() in ip6mr_free_table()
pptp: verify sockaddr_len in pptp_bind() and pptp_connect()
Xiangliang Yu (1):
AHCI: Fix softreset failed issue of Port Multiplier
Xunlei Pang (1):
sched/core: Clear the root_domain cpumasks in init_rootdomain()
lucien (1):
sctp: translate host order to network order when setting a hmacid
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 2 -SUBLEVEL = 74 +SUBLEVEL = 75 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/sh/include/asm/unistd_64.h +1 -1
@@ -279,7 +279,7 @@#define __NR_fsetxattr 256#define __NR_getxattr 257#define __NR_lgetxattr 258 -#define __NR_fgetxattr 269 +#define __NR_fgetxattr 259#define __NR_listxattr 260#define __NR_llistxattr 261#define __NR_flistxattr 262
drivers/ata/libahci.c +9 -0
@@ -1226,6 +1226,15 @@ static int ahci_exec_polled_cmd(struct ata_port *ap, int pmp,ata_tf_to_fis (tf, pmp, is_cmd, fis);ahci_fill_cmd_slot (pp,0 , cmd_fis_len | flags | (pmp <<12 )); +/* set port value for softreset of Port Multiplier */ +if (pp->fbs_enabled && pp->fbs_last_dev != pmp) { + tmp =readl (port_mmio +PORT_FBS ); + tmp &= ~(PORT_FBS_DEV_MASK |PORT_FBS_DEC ); + tmp |= pmp <<PORT_FBS_DEV_OFFSET ; +writel (tmp, port_mmio +PORT_FBS ); + pp->fbs_last_dev = pmp; + } +/* issue & wait */ writel (1 , port_mmio +PORT_CMD_ISSUE );
drivers/ata/sata_sil.c +3 -0
@@ -631,6 +631,9 @@ static void sil_dev_config(struct ata_device *dev)unsigned int n, quirks =0 ;unsigned char model_num[ATA_ID_PROD_LEN +1 ]; +/* This controller doesn't support trim */ + dev->horkage |=ATA_HORKAGE_NOTRIM ; +ata_id_c_string (dev->id, model_num,ATA_ID_PROD ,sizeof (model_num));for (n =0 ; sil_blacklist[n].product; n++)
drivers/char/ipmi/ipmi_si_intf.c +4 -4
@@ -1148,15 +1148,15 @@ static int smi_start_processing(void *send_info, new_smi->intf = intf; -/* Try to claim any interrupts. */ -if (new_smi->irq_setup) - new_smi->irq_setup (new_smi); -/* Set up the timer that drives the interface. */ setup_timer (&new_smi->si_timer, smi_timeout, (long )new_smi); new_smi->last_timeout_jiffies = jiffies;mod_timer (&new_smi->si_timer, jiffies +SI_TIMEOUT_JIFFIES ); +/* Try to claim any interrupts. */ +if (new_smi->irq_setup) + new_smi->irq_setup (new_smi); +/* * Check if the user forcefully enabled the daemon. */
drivers/gpu/drm/drm_fops.c +59 -36
108 lines not on this page · raw message
drivers/gpu/drm/drm_stub.c +6 -1
@@ -225,6 +225,10 @@ int drm_setmaster_ioctl(struct drm_device *dev, void *data,if (!file_priv->minor->master && file_priv->minor->master != file_priv->master) {mutex_lock (&dev->struct_mutex); +if (!file_priv->allowed_master) { + ret =drm_new_set_master (dev, file_priv); + goto out_unlock; + } file_priv->minor->master =drm_master_get (file_priv->master); file_priv->is_master =1 ;if (dev->driver->master_set) {
@@ -234,10 +238,11 @@ int drm_setmaster_ioctl(struct drm_device *dev, void *data,drm_master_put (&file_priv->minor->master); } } + out_unlock:mutex_unlock (&dev->struct_mutex); } -return 0 ; +return ret; } int drm_dropmaster_ioctl(struct drm_device *dev, void *data,
drivers/gpu/drm/ttm/ttm_lock.c +1 -1
@@ -180,7 +180,7 @@ int ttm_write_lock(struct ttm_lock *lock, bool interruptible)spin_unlock (&lock->lock); } }else -wait_event (lock->queue,__ttm_read_lock (lock)); +wait_event (lock->queue,__ttm_write_lock (lock));return ret; }
drivers/gpu/vga/vgaarb.c +4 -2
@@ -381,8 +381,10 @@ int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible)set_current_state (interruptible ?TASK_INTERRUPTIBLE :TASK_UNINTERRUPTIBLE ); -if (signal_pending (current)) { - rc = -EINTR ; +if (interruptible &&signal_pending (current)) { +__set_current_state (TASK_RUNNING ); +remove_wait_queue (&vga_wait_queue, &wait); + rc = -ERESTARTSYS ;break ; }schedule ();
drivers/isdn/i4l/isdn_ppp.c +8 -4
@@ -301,6 +301,8 @@ isdn_ppp_open(int min, struct file *file) is->compflags =0 ; is->reset =isdn_ppp_ccp_reset_alloc (is); +if (!is->reset) +return -ENOMEM ; is->lp =NULL ; is->mp_seqno =0 ;/* MP sequence number */
@@ -320,6 +322,10 @@ isdn_ppp_open(int min, struct file *file)* VJ header compression init */ is->slcomp =slhc_init (16 ,16 );/* not necessary for 2. link in bundle */ +if (IS_ERR (is->slcomp)) { +isdn_ppp_ccp_reset_free (is); +return PTR_ERR (is->slcomp); + }#endif #ifdef CONFIG_IPPP_FILTER is->pass_filter =NULL ;
@@ -568,10 +574,8 @@ isdn_ppp_ioctl(int min, struct file *file, unsigned int cmd, unsigned long arg) is->maxcid = val;#ifdef CONFIG_ISDN_PPP_VJ sltmp =slhc_init (16 , val); -if (!sltmp) { -printk (KERN_ERR "ippp, can't realloc slhc struct\n" ); -return -ENOMEM ; - } +if (IS_ERR (sltmp)) +return PTR_ERR (sltmp);if (is->slcomp)slhc_free (is->slcomp); is->slcomp = sltmp;
drivers/md/persistent-data/dm-btree.c +18 -2
@@ -231,6 +231,16 @@ static void pop_frame(struct del_stack *s)dm_tm_unlock (s->tm, f->b); } +static void unlock_all_frames (struct del_stack *s) +{ +struct frame *f; + +while (unprocessed_frames (s)) { + f = s->spine + s->top--; +dm_tm_unlock (s->tm, f->b); + } +} +int dm_btree_del (struct dm_btree_info *info,dm_block_t root) {int r;
@@ -286,9 +296,13 @@ int dm_btree_del(struct dm_btree_info *info, dm_block_t root) f->current_child = f->nr_children; } } - out: +if (r) { +/* cleanup all frames of del_stack */ +unlock_all_frames (s); + }kfree (s); +return r; }EXPORT_SYMBOL_GPL (dm_btree_del);
@@ -451,8 +465,10 @@ static int btree_split_sibling(struct shadow_spine *s, dm_block_t root, r =insert_at (sizeof (__le64), pn, parent_index +1 ,le64_to_cpu (rn->keys[0 ]), &location); -if (r) +if (r) { +unlock_block (s->info, right);return r; + }if (key <le64_to_cpu (rn->keys[0 ])) {unlock_block (s->info, right);
drivers/net/can/sja1000/sja1000.c +3 -0
@@ -177,6 +177,9 @@ static void sja1000_start(struct net_device *dev) priv->write_reg (priv,REG_RXERR ,0x0 ); priv->read_reg (priv,REG_ECC ); +/* clear interrupt flags */ + priv->read_reg (priv,REG_IR ); +/* leave reset mode */ set_normal_mode (dev); }
drivers/net/ethernet/atheros/atl1c/atl1c_main.c +3 -4
@@ -981,13 +981,12 @@ static int atl1c_setup_ring_resources(struct atl1c_adapter *adapter)sizeof (struct atl1c_hw_stats ) +8 *4 +8 *2 * num_rx_queues; - ring_header->desc =pci_alloc_consistent (pdev, ring_header->size, - &ring_header->dma); + ring_header->desc =dma_zalloc_coherent (&pdev->dev, ring_header->size, + &ring_header->dma,GFP_KERNEL );if (unlikely (!ring_header->desc)) { -dev_err (&pdev->dev,"pci_alloc_consistend failed\n" ); +dev_err (&pdev->dev,"could not get memory for DMA buffer\n" ); goto err_nomem; } -memset (ring_header->desc,0 , ring_header->size);/* init TPD ring */ tpd_ring[0 ].dma =roundup (ring_header->dma,8 );
drivers/net/ethernet/renesas/sh_eth.c +2 -2
@@ -911,6 +911,7 @@ static int sh_eth_rx(struct net_device *ndev)if (!(desc_status &RDFEND )) mdp->stats.rx_length_errors++; + skb = mdp->rx_skbuff[entry];if (desc_status & (RD_RFS1 |RD_RFS2 |RD_RFS3 |RD_RFS4 |RD_RFS5 |RD_RFS6 |RD_RFS10 )) { mdp->stats.rx_errors++;
@@ -926,12 +927,11 @@ static int sh_eth_rx(struct net_device *ndev) mdp->stats.rx_missed_errors++;if (desc_status &RD_RFS10 ) mdp->stats.rx_over_errors++; - }else { + }else if (skb) {if (!mdp->cd->hw_swap)sh_eth_soft_swap (phys_to_virt (ALIGN (rxdesc->addr,4 )), pkt_len +2 ); - skb = mdp->rx_skbuff[entry]; mdp->rx_skbuff[entry] =NULL ;if (mdp->cd->rpadir)skb_reserve (skb,NET_IP_ALIGN );
drivers/net/macvlan.c +2 -0
@@ -172,6 +172,7 @@ static rx_handler_result_t macvlan_handle_frame(struct sk_buff **pskb) skb =ip_check_defrag (skb,IP_DEFRAG_MACVLAN );if (!skb)return RX_HANDLER_CONSUMED ; + *pskb = skb; eth =eth_hdr (skb); src =macvlan_hash_lookup (port, eth->h_source);if (!src)
@@ -221,6 +222,7 @@ static rx_handler_result_t macvlan_handle_frame(struct sk_buff **pskb)if (!skb) goto out; + *pskb = skb; skb->dev = dev; skb->pkt_type =PACKET_HOST ;
drivers/net/phy/broadcom.c +1 -1
@@ -935,7 +935,7 @@ static struct mdio_device_id __maybe_unused broadcom_tbl[] = { { PHY_ID_BCM5421, 0xfffffff0 }, { PHY_ID_BCM5461, 0xfffffff0 }, { PHY_ID_BCM5464, 0xfffffff0 }, - { PHY_ID_BCM5482, 0xfffffff0 }, + { PHY_ID_BCM5481, 0xfffffff0 }, { PHY_ID_BCM5482, 0xfffffff0 }, { PHY_ID_BCM50610, 0xfffffff0 }, { PHY_ID_BCM50610M, 0xfffffff0 },
drivers/net/ppp/ppp_generic.c +2 -4
@@ -703,10 +703,8 @@ static long ppp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) val &=0xffff ; } vj =slhc_init (val2+1 , val+1 ); -if (!vj) { -netdev_err (ppp->dev, -"PPP: no memory (VJ compressor)\n" ); - err = -ENOMEM ; +if (IS_ERR (vj)) { + err =PTR_ERR (vj);break ; }ppp_lock (ppp);
drivers/net/ppp/pptp.c +6 -0
@@ -420,6 +420,9 @@ static int pptp_bind(struct socket *sock, struct sockaddr *uservaddr,struct pptp_opt *opt = &po->proto.pptp;int error =0 ; +if (sockaddr_len <sizeof (struct sockaddr_pppox )) +return -EINVAL ; +lock_sock (sk); opt->src_addr = sp->sa_addr.pptp;
@@ -441,6 +444,9 @@ static int pptp_connect(struct socket *sock, struct sockaddr *uservaddr,struct flowi4 fl4;int error =0 ; +if (sockaddr_len <sizeof (struct sockaddr_pppox )) +return -EINVAL ; +if (sp->sa_protocol !=PX_PROTO_PPTP )return -EINVAL ;
drivers/net/slip/slhc.c +8 -4
@@ -85,8 +85,9 @@ static long decode(unsigned char **cpp);static unsigned char *put16 (unsigned char *cp,unsigned short x);static unsigned short pull16 (unsigned char **cpp); -/* Initialize compression data structure +/* Allocate compression data structure * slots must be in range 0 to 255 (zero meaning no compression) +* Returns pointer to structure or ERR_PTR() on error. */ struct slcompress *slhc_init (int rslots,int tslots)
@@ -95,11 +96,14 @@ slhc_init(int rslots, int tslots) registerstruct cstate *ts;struct slcompress *comp; +if (rslots <0 || rslots >255 || tslots <0 || tslots >255 ) +return ERR_PTR (-EINVAL ); + comp =kzalloc (sizeof (struct slcompress ),GFP_KERNEL );if (! comp) goto out_fail; -if ( rslots >0 && rslots <256 ) { +if (rslots >0 ) {size_t rsize = rslots *sizeof (struct cstate ); comp->rstate =kzalloc (rsize,GFP_KERNEL );if (! comp->rstate)
@@ -107,7 +111,7 @@ slhc_init(int rslots, int tslots) comp->rslot_limit = rslots -1 ; } -if ( tslots >0 && tslots <256 ) { +if (tslots >0 ) {size_t tsize = tslots *sizeof (struct cstate ); comp->tstate =kzalloc (tsize,GFP_KERNEL );if (! comp->tstate)
@@ -142,7 +146,7 @@ out_free2: out_free:kfree (comp); out_fail: -return NULL ; +return ERR_PTR (-ENOMEM ); }
drivers/net/slip/slip.c +1 -1
@@ -164,7 +164,7 @@ static int sl_alloc_bufs(struct slip *sl, int mtu)if (cbuff ==NULL ) goto err_exit; slcomp =slhc_init (16 ,16 ); -if (slcomp ==NULL ) +if (IS_ERR (slcomp)) goto err_exit;#endif spin_lock_bh (&sl->lock);
drivers/net/wan/x25_asy.c +1 -5
@@ -547,16 +547,12 @@ static void x25_asy_receive_buf(struct tty_struct *tty,static int x25_asy_open_tty (struct tty_struct *tty) { -struct x25_asy *sl = tty->disc_data; +struct x25_asy *sl;int err;if (tty->ops->write ==NULL )return -EOPNOTSUPP ; -/* First make sure we're not already connected. */ -if (sl && sl->magic ==X25_ASY_MAGIC ) -return -EEXIST ; -/* OK. Find a free X.25 channel to use. */ sl =x25_asy_alloc ();if (sl ==NULL )
drivers/parisc/iommu-helpers.h +8 -7
@@ -104,7 +104,11 @@ iommu_coalesce_chunks(struct ioc *ioc, struct device *dev,struct scatterlist *contig_sg;/* contig chunk head */ unsigned long dma_offset, dma_len;/* start/len of DMA stream */ unsigned int n_mappings =0 ; -unsigned int max_seg_size =dma_get_max_seg_size (dev); +unsigned int max_seg_size =min (dma_get_max_seg_size (dev), + (unsigned )DMA_CHUNK_SIZE ); +unsigned int max_seg_boundary =dma_get_seg_boundary (dev) +1 ; +if (max_seg_boundary)/* check if the addition above didn't overflow */ + max_seg_size =min (max_seg_size, max_seg_boundary);while (nents >0 ) {
@@ -139,14 +143,11 @@ iommu_coalesce_chunks(struct ioc *ioc, struct device *dev,/* ** First make sure current dma stream won't -** exceed DMA_CHUNK_SIZE if we coalesce the +** exceed max_seg_size if we coalesce the ** next entry. */ -if (unlikely (ALIGN (dma_len + dma_offset + startsg->length, -IOVP_SIZE ) >DMA_CHUNK_SIZE )) -break ; - -if (startsg->length + dma_len > max_seg_size) +if (unlikely (ALIGN (dma_len + dma_offset + startsg->length,IOVP_SIZE ) > + max_seg_size))break ;/*
drivers/usb/class/cdc-acm.c +9 -0
@@ -916,6 +916,10 @@ static int acm_probe(struct usb_interface *intf,/* normal quirks */ quirks = (unsigned long )id->driver_info; + +if (quirks ==IGNORE_DEVICE ) +return -ENODEV ; + num_rx_buf = (quirks ==SINGLE_RX_URB ) ?1 :ACM_NR ;/* handle quirks deadly to normal probing*/
@@ -1662,6 +1666,11 @@ static const struct usb_device_id acm_ids[] = { .driver_info = NO_DATA_INTERFACE, }, +/* Exclude Infineon Flash Loader utility */ + { USB_DEVICE(0x058b, 0x0041), + .driver_info =IGNORE_DEVICE , + }, + /* control interfaces without any protocol set */ { USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM, USB_CDC_PROTO_NONE) },
drivers/usb/class/cdc-acm.h +1 -0
@@ -127,4 +127,5 @@ struct acm {#define NO_CAP_LINE 4#define NOT_A_MODEM 8#define NO_DATA_INTERFACE 16 +#define IGNORE_DEVICE 32#define CLEAR_HALT_CONDITIONS BIT(7)
drivers/usb/class/usblp.c +1 -1
@@ -861,11 +861,11 @@ static int usblp_wwait(struct usblp *usblp, int nonblock)add_wait_queue (&usblp->wwait, &waita);for (;;) { -set_current_state (TASK_INTERRUPTIBLE );if (mutex_lock_interruptible (&usblp->mut)) { rc = -EINTR ;break ; } +set_current_state (TASK_INTERRUPTIBLE ); rc =usblp_wtest (usblp, nonblock);mutex_unlock (&usblp->mut);if (rc <=0 )
drivers/usb/core/config.c +2 -1
@@ -117,7 +117,8 @@ static void usb_parse_ss_endpoint_companion(struct device *ddev, int cfgno, USB_SS_MULT(desc->bmAttributes) > 3) {dev_warn (ddev,"Isoc endpoint has Mult of %d in " "config %d interface %d altsetting %d ep %d: " -"setting to 3\n" , desc->bmAttributes +1 , +"setting to 3\n" , +USB_SS_MULT (desc->bmAttributes), cfgno, inum, asnum, ep->desc.bEndpointAddress); ep->ss_ep_comp.bmAttributes =2 ; }
drivers/usb/host/whci/qset.c +4 -0
@@ -377,6 +377,10 @@ static int qset_fill_page_list(struct whc *whc, struct whc_std *std, gfp_t mem_fif (std->pl_virt ==NULL )return -ENOMEM ; std->dma_addr =dma_map_single (whc->wusbhc.dev, std->pl_virt, pl_len,DMA_TO_DEVICE ); +if (dma_mapping_error (whc->wusbhc.dev, std->dma_addr)) { +kfree (std->pl_virt); +return -EFAULT ; + }for (p =0 ; p < std->num_pointers; p++) { std->pl_virt[p].buf_ptr =cpu_to_le64 (dma_addr);
drivers/usb/host/xhci-pci.c +2 -0
@@ -106,6 +106,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |=XHCI_TRUST_TX_LENGTH ;if (pdev->vendor ==PCI_VENDOR_ID_INTEL ) + xhci->quirks |=XHCI_INTEL_HOST ; +if (pdev->vendor ==PCI_VENDOR_ID_INTEL ) xhci->quirks |=XHCI_AVOID_BEI ;if (pdev->vendor ==PCI_VENDOR_ID_INTEL && pdev->device ==PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI ) {
drivers/usb/host/xhci.c +18 -0
@@ -170,6 +170,16 @@ int xhci_reset(struct xhci_hcd *xhci) command |=CMD_RESET ;xhci_writel (xhci, command, &xhci->op_regs->command); +/* Existing Intel xHCI controllers require a delay of 1 mS, +* after setting the CMD_RESET bit, and before accessing any +* HC registers. This allows the HC to complete the +* reset operation and be ready for HC register access. +* Without this delay, the subsequent HC register access, +* may result in a system hang very rarely. +*/ +if (xhci->quirks &XHCI_INTEL_HOST ) +udelay (1000 ); + ret =handshake (xhci, &xhci->op_regs->command,CMD_RESET ,0 ,10 *1000 *1000 );if (ret)
@@ -4120,8 +4130,16 @@ int xhci_update_hub_device(struct usb_hcd *hcd, struct usb_device *hdev, ctrl_ctx->add_flags |=cpu_to_le32 (SLOT_FLAG ); slot_ctx =xhci_get_slot_ctx (xhci, config_cmd->in_ctx); slot_ctx->dev_info |=cpu_to_le32 (DEV_HUB ); +/* +* refer to section 6.2.2: MTT should be 0 for full speed hub, +* but it may be already set to 1 when setup an xHCI virtual +* device, so clear it anyway. +*/ if (tt->multi) slot_ctx->dev_info |=cpu_to_le32 (DEV_MTT ); +else if (hdev->speed ==USB_SPEED_FULL ) + slot_ctx->dev_info &=cpu_to_le32 (~DEV_MTT ); +if (xhci->hci_version >0x95 ) { xhci_dbg(xhci, "xHCI version %x needs hub " "TT think time and number of ports\n",
drivers/usb/host/xhci.h +1 -0
@@ -1492,6 +1492,7 @@ struct xhci_hcd {#define XHCI_SW_BW_CHECKING (1 << 8)#define XHCI_AMD_0x96_HOST (1 << 9)#define XHCI_TRUST_TX_LENGTH (1 << 10) +#define XHCI_INTEL_HOST (1 << 12)#define XHCI_SPURIOUS_REBOOT (1 << 13)#define XHCI_COMP_MODE_QUIRK (1 << 14)#define XHCI_AVOID_BEI (1 << 15)
drivers/usb/musb/musb_core.c +5 -6
@@ -131,7 +131,7 @@ static inline struct musb *dev_to_musb(struct device *dev)/*-------------------------------------------------------------------------*/ #ifndef CONFIG_BLACKFIN -static int musb_ulpi_read (struct otg_transceiver *otg,u32 offset) +static int musb_ulpi_read (struct otg_transceiver *otg,u32 reg) {void __iomem *addr = otg->io_priv;int i =0 ;
@@ -147,7 +147,7 @@ static int musb_ulpi_read(struct otg_transceiver *otg, u32 offset)* ULPICarKitControlDisableUTMI after clearing POWER_SUSPENDM. */ -musb_writeb (addr,MUSB_ULPI_REG_ADDR , (u8 )offset); +musb_writeb (addr,MUSB_ULPI_REG_ADDR , (u8 )reg);musb_writeb (addr,MUSB_ULPI_REG_CONTROL ,MUSB_ULPI_REG_REQ |MUSB_ULPI_RDN_WR );
@@ -165,8 +165,7 @@ static int musb_ulpi_read(struct otg_transceiver *otg, u32 offset)return musb_readb (addr,MUSB_ULPI_REG_DATA ); } -static int musb_ulpi_write (struct otg_transceiver *otg, -u32 offset,u32 data) +static int musb_ulpi_write (struct otg_transceiver *otg,u32 val,u32 reg) {void __iomem *addr = otg->io_priv;int i =0 ;
@@ -178,8 +177,8 @@ static int musb_ulpi_write(struct otg_transceiver *otg, power &= ~MUSB_POWER_SUSPENDM ;musb_writeb (addr,MUSB_POWER , power); -musb_writeb (addr,MUSB_ULPI_REG_ADDR , (u8 )offset); -musb_writeb (addr,MUSB_ULPI_REG_DATA , (u8 )data); +musb_writeb (addr,MUSB_ULPI_REG_ADDR , (u8 )reg); +musb_writeb (addr,MUSB_ULPI_REG_DATA , (u8 )val);musb_writeb (addr,MUSB_ULPI_REG_CONTROL ,MUSB_ULPI_REG_REQ ); while (!(musb_readb(addr, MUSB_ULPI_REG_CONTROL)
drivers/usb/serial/cp210x.c +0 -1
@@ -138,7 +138,6 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA61) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA70) }, /* Silicon Labs factory default */ - { USB_DEVICE(0x10C4, 0xEA80) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA71) }, /* Infinity GPS-MIC-1 Radio Monophone */ { USB_DEVICE(0x10C4, 0xF001) }, /* Elan Digital Systems USBscope50 */ { USB_DEVICE(0x10C4, 0xF002) }, /* Elan Digital Systems USBwave12 */
drivers/usb/serial/option.c +11 -0
@@ -162,6 +162,7 @@ static void option_instat_callback(struct urb *urb);#define NOVATELWIRELESS_PRODUCT_HSPA_EMBEDDED_HIGHSPEED 0x9001#define NOVATELWIRELESS_PRODUCT_E362 0x9010#define NOVATELWIRELESS_PRODUCT_E371 0x9011 +#define NOVATELWIRELESS_PRODUCT_U620L 0x9022#define NOVATELWIRELESS_PRODUCT_G2 0xA010#define NOVATELWIRELESS_PRODUCT_MC551 0xB001
@@ -355,6 +356,7 @@ static void option_instat_callback(struct urb *urb);/* This is the 4G XS Stick W14 a.k.a. Mobilcom Debitel Surf-Stick * * It seems to contain a Qualcomm QSC6240/6290 chipset */ #define FOUR_G_SYSTEMS_PRODUCT_W14 0x9603 +#define FOUR_G_SYSTEMS_PRODUCT_W100 0x9b01/* iBall 3.5G connect wireless modem */ #define IBALL_3_5G_CONNECT 0x9605
@@ -525,6 +527,11 @@ static const struct option_blacklist_info four_g_w14_blacklist = { .sendsetup = BIT(0) | BIT(1), }; +static const struct option_blacklist_info four_g_w100_blacklist = { + .sendsetup =BIT (1 ) |BIT (2 ), + .reserved =BIT (3 ), +}; +static const struct option_blacklist_info alcatel_x200_blacklist = { .sendsetup =BIT (0 ) |BIT (1 ), .reserved =BIT (4 ),
@@ -1058,6 +1065,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_MC551, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_E362, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_E371, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_U620L, 0xff, 0x00, 0x00) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01A) },
@@ -1640,6 +1648,9 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(LONGCHEER_VENDOR_ID, FOUR_G_SYSTEMS_PRODUCT_W14), .driver_info = (kernel_ulong_t)&four_g_w14_blacklist }, + { USB_DEVICE(LONGCHEER_VENDOR_ID, FOUR_G_SYSTEMS_PRODUCT_W100), + .driver_info = (kernel_ulong_t)&four_g_w100_blacklist + }, { USB_DEVICE(LONGCHEER_VENDOR_ID, ZOOM_PRODUCT_4597) }, { USB_DEVICE(LONGCHEER_VENDOR_ID, IBALL_3_5G_CONNECT) }, { USB_DEVICE(HAIER_VENDOR_ID, HAIER_PRODUCT_CE100) },
drivers/usb/serial/ti_usb_3410_5052.c +5 -2
@@ -164,7 +164,7 @@ 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[15 +TI_EXTRA_VID_PID_COUNT +1 ] = { +static struct usb_device_id ti_id_table_3410[17 +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 (MTS_VENDOR_ID ,MTS_GSM_NO_FW_PRODUCT_ID ) },
@@ -181,6 +181,7 @@ static struct usb_device_id ti_id_table_3410[15+TI_EXTRA_VID_PID_COUNT+1] = { { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_STEREO_PLUG_ID) }, { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_STRIP_PORT_ID) }, { USB_DEVICE(TI_VENDOR_ID, FRI2_PRODUCT_ID) }, + { USB_DEVICE(HONEYWELL_VENDOR_ID, HONEYWELL_HGI80_PRODUCT_ID) }, }; static struct usb_device_id ti_id_table_5052[5+TI_EXTRA_VID_PID_COUNT+1] = {
@@ -190,7 +191,7 @@ static struct usb_device_id ti_id_table_5052[5+TI_EXTRA_VID_PID_COUNT+1] = { { USB_DEVICE(TI_VENDOR_ID, TI_5052_FIRMWARE_PRODUCT_ID) }, }; -static struct usb_device_id ti_id_table_combined[19 +2 *TI_EXTRA_VID_PID_COUNT +1 ] = { +static struct usb_device_id ti_id_table_combined[21 +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(MTS_VENDOR_ID, MTS_GSM_NO_FW_PRODUCT_ID) },
@@ -209,7 +210,9 @@ static struct usb_device_id ti_id_table_combined[19+2*TI_EXTRA_VID_PID_COUNT+1] { USB_DEVICE(IBM_VENDOR_ID, IBM_454B_PRODUCT_ID) }, { USB_DEVICE(IBM_VENDOR_ID, IBM_454C_PRODUCT_ID) }, { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_PRODUCT_ID) }, + { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_STRIP_PORT_ID) }, { USB_DEVICE(TI_VENDOR_ID, FRI2_PRODUCT_ID) }, + { USB_DEVICE(HONEYWELL_VENDOR_ID, HONEYWELL_HGI80_PRODUCT_ID) }, { } };
drivers/usb/serial/ti_usb_3410_5052.h +4 -0
@@ -56,6 +56,10 @@#define ABBOTT_PRODUCT_ID ABBOTT_STEREO_PLUG_ID#define ABBOTT_STRIP_PORT_ID 0x3420 +/* Honeywell vendor and product IDs */ +#define HONEYWELL_VENDOR_ID 0x10ac +#define HONEYWELL_HGI80_PRODUCT_ID 0x0102/* Honeywell HGI80 */ +/* Commands */ #define TI_GET_VERSION 0x01#define TI_GET_PORT_STATUS 0x02
fs/9p/vfs_inode.c +2 -2
@@ -435,9 +435,9 @@ void v9fs_evict_inode(struct inode *inode) {struct v9fs_inode *v9inode =V9FS_I (inode); -truncate_inode_pages (inode->i_mapping,0 ); +truncate_inode_pages (&inode->i_data,0 );end_writeback (inode); -filemap_fdatawrite (inode->i_mapping); +filemap_fdatawrite (&inode->i_data);#ifdef CONFIG_9P_FSCACHE v9fs_cache_inode_put_cookie (inode);
fs/cachefiles/rdwr.c +1 -1
@@ -894,7 +894,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)loff_t pos, eof;size_t len;void *data; -int ret; +int ret = -ENOBUFS ;ASSERT (op !=NULL );ASSERT (page !=NULL );
fs/ext4/ext4.h +44 -7
69 lines not on this page · raw message
fs/fuse/file.c +1 -1
@@ -850,6 +850,7 @@ static ssize_t fuse_fill_write_pages(struct fuse_req *req,mark_page_accessed (page); +iov_iter_advance (ii, tmp);if (!tmp) {unlock_page (page);page_cache_release (page);
@@ -861,7 +862,6 @@ static ssize_t fuse_fill_write_pages(struct fuse_req *req, req->pages[req->num_pages] = page; req->num_pages++; -iov_iter_advance (ii, tmp); count += tmp; pos += tmp; offset += tmp;
fs/jbd2/transaction.c +2 -0
@@ -1876,6 +1876,7 @@ static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh)if (!buffer_dirty (bh)) {/* bdflush has written it. We can drop it now */ +__jbd2_journal_remove_checkpoint (jh); goto zap_buffer; }
@@ -1913,6 +1914,7 @@ static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh)/* The orphan record's transaction has * committed. We can cleanse this buffer */ clear_buffer_jbddirty (bh); +__jbd2_journal_remove_checkpoint (jh); goto zap_buffer; } }
fs/nfs/inode.c +5 -1
@@ -1389,7 +1389,11 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) nfsi->attrtimeo_timestamp = now; } } - invalid &= ~NFS_INO_INVALID_ATTR ; + +/* Don't declare attrcache up to date if there were no attrs! */ +if (fattr->valid !=0 ) + invalid &= ~NFS_INO_INVALID_ATTR ; +/* Don't invalidate the data if we were to blame */ if (!(S_ISREG (inode->i_mode) ||S_ISDIR (inode->i_mode) ||S_ISLNK (inode->i_mode)))
fs/partitions/mac.c +7 -3
@@ -32,7 +32,7 @@ int mac_partition(struct parsed_partitions *state)Sector sect;unsigned char *data;int slot, blocks_in_map; -unsigned secsize; +unsigned secsize, datasize, partoffset;#ifdef CONFIG_PPC_PMAC int found_root =0 ;int found_root_goodness =0 ;
@@ -50,10 +50,14 @@ int mac_partition(struct parsed_partitions *state) } secsize =be16_to_cpu (md->block_size);put_dev_sector (sect); - data =read_part_sector (state, secsize/512 , §); + datasize =round_down (secsize,512 ); + data =read_part_sector (state, datasize /512 , §);if (!data)return -1 ; - part = (struct mac_partition *) (data + secsize%512 ); + partoffset = secsize %512 ; +if (partoffset +sizeof (*part) > datasize) +return -1 ; + part = (struct mac_partition *) (data + partoffset);if (be16_to_cpu (part->signature) !=MAC_PARTITION_MAGIC ) {put_dev_sector (sect);return 0 ;/* not a MacOS disk */
fs/splice.c +8 -0
@@ -872,6 +872,13 @@ EXPORT_SYMBOL(splice_from_pipe_feed);*/ int splice_from_pipe_next (struct pipe_inode_info *pipe,struct splice_desc *sd) { +/* +* Check for signal early to make process killable when there are +* always buffers available +*/ +if (signal_pending (current)) +return -ERESTARTSYS ; +while (!pipe->nrbufs) {if (!pipe->writers)return 0 ;
@@ -950,6 +957,7 @@ ssize_t __splice_from_pipe(struct pipe_inode_info *pipe, struct splice_desc *sd,splice_from_pipe_begin (sd); do { + cond_resched(); ret = splice_from_pipe_next(pipe, sd); if (ret > 0) ret = splice_from_pipe_feed(pipe, sd, actor);
fs/sysv/Makefile +1 -1
@@ -5,4 +5,4 @@ obj-$(CONFIG_SYSV_FS) += sysv.o sysv-objs := ialloc.o balloc.o inode.o itree.o file.o dir.o \ - namei.o super.o symlink.o + namei.o super.o
fs/sysv/inode.c +2 -8
@@ -176,14 +176,8 @@ void sysv_set_inode(struct inode *inode, dev_t rdev) inode->i_fop = &sysv_dir_operations; inode->i_mapping->a_ops = &sysv_aops; }else if (S_ISLNK (inode->i_mode)) { -if (inode->i_blocks) { - inode->i_op = &sysv_symlink_inode_operations; - inode->i_mapping->a_ops = &sysv_aops; - }else { - inode->i_op = &sysv_fast_symlink_inode_operations; -nd_terminate_link (SYSV_I (inode)->i_data, inode->i_size, -sizeof (SYSV_I (inode)->i_data) -1 ); - } + inode->i_op = &sysv_symlink_inode_operations; + inode->i_mapping->a_ops = &sysv_aops; }else init_special_inode (inode, inode->i_mode, rdev); }
fs/sysv/symlink.c deleted +0 -20
@@ -1,20 +0,0 @@ -/* -* linux/fs/sysv/symlink.c -* -* Handling of System V filesystem fast symlinks extensions. -* Aug 2001, Christoph Hellwig ([email protected]) -*/ - -#include "sysv.h" -#include <linux/namei.h> - -static void *sysv_follow_link (struct dentry *dentry,struct nameidata *nd) -{ -nd_set_link (nd, (char *)SYSV_I (dentry->d_inode)->i_data); -return NULL ; -} - -const struct inode_operations sysv_fast_symlink_inode_operations = { - .readlink = generic_readlink, - .follow_link = sysv_follow_link, -};
include/drm/drmP.h +6 -0
@@ -430,6 +430,11 @@ struct drm_file {void *driver_priv;int is_master;/* this file private is a master for a minor */ +/* +* This client is allowed to gain master privileges for @master. +* Protected by struct drm_device::struct_mutex. +*/ + unsigned allowed_master:1;struct drm_master *master;/* master this node is currently associated with N.B. not always minor->master */ struct list_head fbs;
@@ -1254,6 +1259,7 @@ extern int drm_fasync(int fd, struct file *filp, int on);extern ssize_t drm_read (struct file *filp,char __user *buffer,size_t count,loff_t *offset);extern int drm_release (struct inode *inode,struct file *filp); +extern int drm_new_set_master (struct drm_device *dev,struct drm_file *fpriv);/* Mapping support (drm_vm.h) */ extern int drm_mmap (struct file *filp,struct vm_area_struct *vma);
include/linux/ipv6.h +1 -1
@@ -369,7 +369,7 @@ struct ipv6_pinfo {struct ipv6_ac_socklist *ipv6_ac_list;struct ipv6_fl_socklist *ipv6_fl_list; -struct ipv6_txoptions *opt; +struct ipv6_txoptions __rcu *opt;struct sk_buff *pktoptions;struct sk_buff *rxpmtu;struct {
include/linux/lockdep.h +5 -0
@@ -342,6 +342,9 @@ extern void lockdep_trace_alloc(gfp_t mask);#define lockdep_depth (tsk) (debug_locks ? (tsk)->lockdep_depth : 0)#define lockdep_assert_held (l) WARN_ON(debug_locks && !lockdep_is_held(l)) +#define lockdep_assert_held_once (l) do { \ + WARN_ON_ONCE(debug_locks && !lockdep_is_held(l)); \ + } while (0)#else /* !LOCKDEP */
@@ -362,6 +365,7 @@ static inline void lockdep_on(void)# define lockdep_trace_alloc (g) do { } while (0)# define lockdep_init () do { } while (0)# define lockdep_info () do { } while (0) +# define lockdep_init_map (lock, name, key, sub) \ do { (void)(name); (void)(key); } while (0)# define lockdep_set_class (lock, key) do { (void)(key); } while (0)
@@ -391,6 +395,7 @@ struct lock_class_key { };#define lockdep_depth (tsk) (0)#define lockdep_assert_held (l) do { } while (0) +#define lockdep_assert_held_once (l) do { (void)(l); } while (0)#endif /* !LOCKDEP */
include/net/af_unix.h +4 -2
@@ -54,10 +54,12 @@ struct unix_sock {struct list_head link;atomic_long_t inflight;spinlock_t lock; - unsigned int gc_candidate : 1; - unsigned int gc_maybe_cycle : 1;unsigned char recursion_level; +unsigned long gc_flags; +#define UNIX_GC_CANDIDATE 0 +#define UNIX_GC_MAYBE_CYCLE 1struct socket_wq peer_wq; +wait_queue_t peer_wake; };#define unix_sk (__sk) ((struct unix_sock *)__sk)
include/net/ipv6.h +21 -1
@@ -191,6 +191,7 @@ extern rwlock_t ip6_ra_lock;*/ struct ipv6_txoptions { +atomic_t refcnt;/* Length of this structure */ int tot_len;
@@ -203,7 +204,7 @@ struct ipv6_txoptions {struct ipv6_opt_hdr *dst0opt;struct ipv6_rt_hdr *srcrt;/* Routing Header */ struct ipv6_opt_hdr *dst1opt; - +struct rcu_head rcu;/* Option buffer, as read by IPV6_PKTOPTIONS, starts here. */ };
@@ -229,6 +230,24 @@ struct ipv6_fl_socklist {struct ip6_flowlabel *fl; }; +static inline struct ipv6_txoptions *txopt_get (const struct ipv6_pinfo *np) +{ +struct ipv6_txoptions *opt; + +rcu_read_lock (); + opt =rcu_dereference (np->opt); +if (opt && !atomic_inc_not_zero (&opt->refcnt)) + opt =NULL ; +rcu_read_unlock (); +return opt; +} + +static inline void txopt_put (struct ipv6_txoptions *opt) +{ +if (opt &&atomic_dec_and_test (&opt->refcnt)) +kfree_rcu (opt, rcu); +} +extern struct ip6_flowlabel *fl6_sock_lookup (struct sock *sk,__be32 label); extern struct ipv6_txoptions *fl6_merge_options(struct ipv6_txoptions * opt_space, struct ip6_flowlabel * fl,
@@ -382,6 +401,7 @@ struct ip6_create_arg {u32 user;const struct in6_addr *src;const struct in6_addr *dst; +int iif; };void ip6_frag_init (struct inet_frag_queue *q,void *a);
include/net/sock.h +3 -0
@@ -302,6 +302,7 @@ struct sock { sk_no_check : 2, sk_userlocks : 4, sk_protocol : 8, +#define SK_PROTOCOL_MAX ((u8)~0U) sk_type :16 ;kmemcheck_bitfield_end (flags);int sk_wmem_queued;
@@ -565,6 +566,8 @@ enum sock_flags { SOCK_ZEROCOPY, /* buffers from userspace */ }; +#define SK_FLAGS_TIMESTAMP ((1UL << SOCK_TIMESTAMP) | (1UL << SOCK_TIMESTAMPING_RX_SOFTWARE)) +static inline void sock_copy_flags (struct sock *nsk,struct sock *osk) { nsk->sk_flags = osk->sk_flags;
kernel/sched.c +3 -4
@@ -2932,7 +2932,6 @@ out:*/ int wake_up_process (struct task_struct *p) { -WARN_ON (task_is_stopped_or_traced (p));return try_to_wake_up (p,TASK_NORMAL ,0 ); }EXPORT_SYMBOL (wake_up_process);
@@ -7171,11 +7170,11 @@ static int init_rootdomain(struct root_domain *rd) {memset (rd,0 ,sizeof (*rd)); -if (!alloc_cpumask_var (&rd->span,GFP_KERNEL )) +if (!zalloc_cpumask_var (&rd->span,GFP_KERNEL )) goto out; -if (!alloc_cpumask_var (&rd->online,GFP_KERNEL )) +if (!zalloc_cpumask_var (&rd->online,GFP_KERNEL )) goto free_span; -if (!alloc_cpumask_var (&rd->rto_mask,GFP_KERNEL )) +if (!zalloc_cpumask_var (&rd->rto_mask,GFP_KERNEL )) goto free_online;if (cpupri_init (&rd->cpupri) !=0 )
kernel/trace/ring_buffer.c +5 -7
@@ -1581,12 +1581,6 @@ rb_set_commit_to_write(struct ring_buffer_per_cpu *cpu_buffer) goto again; } -static void rb_reset_reader_page (struct ring_buffer_per_cpu *cpu_buffer) -{ - cpu_buffer->read_stamp = cpu_buffer->reader_page->page->time_stamp; - cpu_buffer->reader_page->read =0 ; -} -static void rb_inc_iter (struct ring_buffer_iter *iter) {struct ring_buffer_per_cpu *cpu_buffer = iter->cpu_buffer;
@@ -3064,7 +3058,7 @@ rb_get_reader_page(struct ring_buffer_per_cpu *cpu_buffer)/* Finally update the reader page to the new head */ cpu_buffer->reader_page = reader; -rb_reset_reader_page (cpu_buffer); + cpu_buffer->reader_page->read =0 ;if (overwrite != cpu_buffer->last_overrun) { cpu_buffer->lost_events = overwrite - cpu_buffer->last_overrun;
@@ -3074,6 +3068,10 @@ rb_get_reader_page(struct ring_buffer_per_cpu *cpu_buffer) goto again; out: +/* Update the read_stamp on the first event */ +if (reader && reader->read ==0 ) + cpu_buffer->read_stamp = reader->page->time_stamp; +arch_spin_unlock (&cpu_buffer->lock);local_irq_restore (flags);
mm/backing-dev.c +16 -3
@@ -847,8 +847,9 @@ EXPORT_SYMBOL(congestion_wait);* jiffies for either a BDI to exit congestion of the given @sync queue * or a write to complete. * -* In the absence of zone congestion, cond_resched() is called to yield -* the processor if necessary but otherwise does not sleep. +* In the absence of zone congestion, a short sleep or a cond_resched is +* performed to yield the processor and to allow other subsystems to make +* a forward progress. * * The return value is 0 if the sleep is for the full timeout. Otherwise, * it is the number of jiffies that were still remaining when the function
@@ -868,7 +869,19 @@ long wait_iff_congested(struct zone *zone, int sync, long timeout)*/ if (atomic_read (&nr_bdi_congested[sync]) ==0 || !zone_is_reclaim_congested (zone)) { -cond_resched (); + +/* +* Memory allocation/reclaim might be called from a WQ +* context and the current implementation of the WQ +* concurrency control doesn't recognize that a particular +* WQ is congested if the worker thread is looping without +* ever sleeping. Therefore we have to do a short sleep +* here rather than calling cond_resched(). +*/ +if (current->flags &PF_WQ_WORKER ) +schedule_timeout (1 ); +else +cond_resched ();/* In case we scheduled, work out time remaining */ ret = timeout - (jiffies - start);
mm/hugetlb.c +4 -4
@@ -2818,12 +2818,12 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, }else if (unlikely (is_hugetlb_entry_hwpoisoned (entry)))return VM_FAULT_HWPOISON_LARGE |VM_FAULT_SET_HINDEX (h - hstates); + }else { + ptep =huge_pte_alloc (mm, address,huge_page_size (h)); +if (!ptep) +return VM_FAULT_OOM ; } - ptep =huge_pte_alloc (mm, address,huge_page_size (h)); -if (!ptep) -return VM_FAULT_OOM ; -/* * Serialize hugepage allocation and instantiation, so that we don't * get spurious allocation failures if two CPUs race to instantiate
mm/vmstat.c +4 -2
@@ -1139,13 +1139,14 @@ static const struct file_operations proc_vmstat_file_operations = {#endif /* CONFIG_PROC_FS */ #ifdef CONFIG_SMP +static struct workqueue_struct *vmstat_wq; static DEFINE_PER_CPU(struct delayed_work, vmstat_work);int sysctl_stat_interval__read_mostly =HZ ;static void vmstat_update (struct work_struct *w) {refresh_cpu_vm_stats (smp_processor_id ()); -schedule_delayed_work (&__get_cpu_var (vmstat_work), +queue_delayed_work (vmstat_wq, &__get_cpu_var (vmstat_work),round_jiffies_relative (sysctl_stat_interval)); }
@@ -1154,7 +1155,7 @@ static void __cpuinit start_cpu_timer(int cpu)struct delayed_work *work = &per_cpu (vmstat_work, cpu);INIT_DELAYED_WORK_DEFERRABLE (work, vmstat_update); -schedule_delayed_work_on (cpu, work,__round_jiffies_relative (HZ , cpu)); +queue_delayed_work_on (cpu, vmstat_wq, work,__round_jiffies_relative (HZ , cpu)); }/*
@@ -1204,6 +1205,7 @@ static int __init setup_vmstat(void)register_cpu_notifier (&vmstat_notifier); + vmstat_wq =alloc_workqueue ("vmstat" ,WQ_FREEZABLE |WQ_MEM_RECLAIM ,0 );for_each_online_cpu (cpu)start_cpu_timer (cpu);#endif
net/ax25/af_ax25.c +3 -0
@@ -806,6 +806,9 @@ static int ax25_create(struct net *net, struct socket *sock, int protocol,struct sock *sk;ax25_cb *ax25; +if (protocol <0 || protocol >SK_PROTOCOL_MAX ) +return -EINVAL ; +if (!net_eq (net, &init_net))return -EAFNOSUPPORT ;
net/bluetooth/sco.c +3 -0
@@ -475,6 +475,9 @@ static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_leif (!addr || addr->sa_family !=AF_BLUETOOTH )return -EINVAL ; +if (addr_len <sizeof (struct sockaddr_sco )) +return -EINVAL ; +lock_sock (sk);if (sk->sk_state !=BT_OPEN ) {
net/core/dev.c +1 -1
@@ -5446,7 +5446,7 @@ int __netdev_update_features(struct net_device *dev)netdev_err (dev,"set_features() failed (%d); wanted 0x%08x, left 0x%08x\n" , err, features, dev->features); -return -1 ; +return 0 ; }if (!err)
net/core/scm.c +2 -0
@@ -311,6 +311,8 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) err =put_user (cmlen, &cm->cmsg_len);if (!err) { cmlen =CMSG_SPACE (i*sizeof (int )); +if (msg->msg_controllen < cmlen) + cmlen = msg->msg_controllen; msg->msg_control += cmlen; msg->msg_controllen -= cmlen; }
net/dccp/ipv6.c +21 -23
120 lines not on this page · raw message
net/decnet/af_decnet.c +3 -0
@@ -681,6 +681,9 @@ static int dn_create(struct net *net, struct socket *sock, int protocol, {struct sock *sk; +if (protocol <0 || protocol >SK_PROTOCOL_MAX ) +return -EINVAL ; +if (!net_eq (net, &init_net))return -EAFNOSUPPORT ;
net/ipv4/af_inet.c +3 -0
@@ -279,6 +279,9 @@ static int inet_create(struct net *net, struct socket *sock, int protocol,int try_loading_module =0 ;int err; +if (protocol <0 || protocol >=IPPROTO_MAX ) +return -EINVAL ; +if (unlikely (!inet_ehash_secret))if (sock->type !=SOCK_RAW && sock->type !=SOCK_DGRAM )build_ehash_secret ();
net/ipv4/igmp.c +3 -2
@@ -1866,7 +1866,7 @@ int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr)rtnl_lock (); in_dev =ip_mc_find_dev (net, imr); -if (!in_dev) { +if (!imr->imr_ifindex && !imr->imr_address.s_addr && !in_dev) { ret = -ENODEV ; goto out; }
@@ -1887,7 +1887,8 @@ int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr) *imlp = iml->next_rcu; -ip_mc_dec_group (in_dev, group); +if (in_dev) +ip_mc_dec_group (in_dev, group);rtnl_unlock ();/* decrease mem now to avoid the memleak warning */ atomic_sub (sizeof (*iml), &sk->sk_omem_alloc);
net/ipv4/ipmr.c +8 -7
@@ -134,7 +134,7 @@ static int ipmr_cache_report(struct mr_table *mrt, struct sk_buff *pkt, vifi_t vifi, int assert);static int __ipmr_fill_mroute (struct mr_table *mrt,struct sk_buff *skb,struct mfc_cache *c,struct rtmsg *rtm); -static void mroute_clean_tables (struct mr_table *mrt); +static void mroute_clean_tables (struct mr_table *mrt,bool all);static void ipmr_expire_process (unsigned long arg);#ifdef CONFIG_IP_MROUTE_MULTIPLE_TABLES
@@ -346,7 +346,7 @@ static struct mr_table *ipmr_new_table(struct net *net, u32 id)static void ipmr_free_table (struct mr_table *mrt) {del_timer_sync (&mrt->ipmr_expire_timer); -mroute_clean_tables (mrt); +mroute_clean_tables (mrt, true);kfree (mrt); }
@@ -1143,7 +1143,7 @@ static int ipmr_mfc_add(struct net *net, struct mr_table *mrt,* Close the multicast socket, and clear the vif tables etc */ -static void mroute_clean_tables (struct mr_table *mrt) +static void mroute_clean_tables (struct mr_table *mrt,bool all) {int i;LIST_HEAD (list);
@@ -1152,8 +1152,9 @@ static void mroute_clean_tables(struct mr_table *mrt)/* Shut down all active vif entries */ for (i =0 ; i < mrt->maxvif; i++) { -if (!(mrt->vif_table[i].flags &VIFF_STATIC )) -vif_delete (mrt, i,0 , &list); +if (!all && (mrt->vif_table[i].flags &VIFF_STATIC )) +continue ; +vif_delete (mrt, i,0 , &list); }unregister_netdevice_many (&list);
@@ -1161,7 +1162,7 @@ static void mroute_clean_tables(struct mr_table *mrt)for (i =0 ; i <MFC_LINES ; i++) {list_for_each_entry_safe (c, next, &mrt->mfc_cache_array[i], list) { -if (c->mfc_flags &MFC_STATIC ) +if (!all && (c->mfc_flags &MFC_STATIC ))continue ;list_del_rcu (&c->list);ipmr_cache_free (c);
@@ -1191,7 +1192,7 @@ static void mrtsock_destruct(struct sock *sk)if (sk ==rtnl_dereference (mrt->mroute_sk)) {IPV4_DEVCONF_ALL (net,MC_FORWARDING )--;RCU_INIT_POINTER (mrt->mroute_sk,NULL ); -mroute_clean_tables (mrt); +mroute_clean_tables (mrt, false); } }rtnl_unlock ();
net/ipv4/tcp_input.c +1 -0
@@ -5811,6 +5811,7 @@ discard: } tp->rcv_nxt =TCP_SKB_CB (skb)->seq +1 ; + tp->copied_seq = tp->rcv_nxt; tp->rcv_wup =TCP_SKB_CB (skb)->seq +1 ;/* RFC1323: The window in SYN & SYN/ACK segments is
net/ipv6/af_inet6.c +12 -3
@@ -109,6 +109,9 @@ static int inet6_create(struct net *net, struct socket *sock, int protocol,int try_loading_module =0 ;int err; +if (protocol <0 || protocol >=IPPROTO_MAX ) +return -EINVAL ; +if (sock->type !=SOCK_RAW && sock->type !=SOCK_DGRAM && !inet_ehash_secret)
@@ -430,8 +433,11 @@ void inet6_destroy_sock(struct sock *sk)/* Free tx options */ -if ((opt =xchg (&np->opt,NULL )) !=NULL ) -sock_kfree_s (sk, opt, opt->tot_len); + opt =xchg ((__force struct ipv6_txoptions **)&np->opt,NULL ); +if (opt) { +atomic_sub (opt->tot_len, &sk->sk_omem_alloc); +txopt_put (opt); + } }EXPORT_SYMBOL_GPL (inet6_destroy_sock);
@@ -669,7 +675,10 @@ int inet6_sk_rebuild_header(struct sock *sk) fl6.fl6_sport = inet->inet_sport;security_sk_classify_flow (sk,flowi6_to_flowi (&fl6)); - final_p =fl6_update_dst (&fl6, np->opt, &final); +rcu_read_lock (); + final_p =fl6_update_dst (&fl6,rcu_dereference (np->opt), + &final); +rcu_read_unlock (); dst =ip6_dst_lookup_flow (sk, &fl6, final_p, false);if (IS_ERR (dst)) {
net/ipv6/datagram.c +3 -1
@@ -166,8 +166,10 @@ ipv4_connected:security_sk_classify_flow (sk,flowi6_to_flowi (&fl6)); - opt = flowlabel ? flowlabel->opt : np->opt; +rcu_read_lock (); + opt = flowlabel ? flowlabel->opt :rcu_dereference (np->opt); final_p =fl6_update_dst (&fl6, opt, &final); +rcu_read_unlock (); dst =ip6_dst_lookup_flow (sk, &fl6, final_p, true); err =0 ;
net/ipv6/exthdrs.c +2 -1
@@ -748,6 +748,7 @@ ipv6_dup_options(struct sock *sk, struct ipv6_txoptions *opt) *((char **)&opt2->dst1opt) += dif;if (opt2->srcrt) *((char **)&opt2->srcrt) += dif; +atomic_set (&opt2->refcnt,1 ); }return opt2; }
@@ -812,7 +813,7 @@ ipv6_renew_options(struct sock *sk, struct ipv6_txoptions *opt,return ERR_PTR (-ENOBUFS );memset (opt2,0 , tot_len); - +atomic_set (&opt2->refcnt,1 ); opt2->tot_len = tot_len; p = (char *)(opt2 +1 );
net/ipv6/inet6_connection_sock.c +8 -3
@@ -66,7 +66,9 @@ struct dst_entry *inet6_csk_route_req(struct sock *sk,memset (&fl6,0 ,sizeof (fl6)); fl6.flowi6_proto =IPPROTO_TCP ;ipv6_addr_copy (&fl6.daddr, &treq->rmt_addr); - final_p =fl6_update_dst (&fl6, np->opt, &final); +rcu_read_lock (); + final_p =fl6_update_dst (&fl6,rcu_dereference (np->opt), &final); +rcu_read_unlock ();ipv6_addr_copy (&fl6.saddr, &treq->loc_addr); fl6.flowi6_oif = sk->sk_bound_dev_if; fl6.flowi6_mark = sk->sk_mark;
@@ -225,7 +227,9 @@ int inet6_csk_xmit(struct sk_buff *skb, struct flowi *fl_unused) fl6.fl6_dport = inet->inet_dport;security_sk_classify_flow (sk,flowi6_to_flowi (&fl6)); - final_p =fl6_update_dst (&fl6, np->opt, &final); +rcu_read_lock (); + final_p =fl6_update_dst (&fl6,rcu_dereference (np->opt), &final); +rcu_read_unlock (); dst =__inet6_csk_dst_check (sk, np->dst_cookie);
@@ -248,7 +252,8 @@ int inet6_csk_xmit(struct sk_buff *skb, struct flowi *fl_unused)/* Restore final destination back after routing done */ ipv6_addr_copy (&fl6.daddr, &np->daddr); - res =ip6_xmit (sk, skb, &fl6, np->opt, np->tclass); + res =ip6_xmit (sk, skb, &fl6,rcu_dereference (np->opt), + np->tclass);rcu_read_unlock ();return res; }
net/ipv6/ip6mr.c +9 -8
@@ -118,7 +118,7 @@ static int __ip6mr_fill_mroute(struct mr6_table *mrt, struct sk_buff *skb, struct mfc6_cache *c, struct rtmsg *rtm);static int ip6mr_rtm_dumproute (struct sk_buff *skb,struct netlink_callback *cb); -static void mroute_clean_tables (struct mr6_table *mrt); +static void mroute_clean_tables (struct mr6_table *mrt,bool all);static void ipmr_expire_process (unsigned long arg);#ifdef CONFIG_IPV6_MROUTE_MULTIPLE_TABLES
@@ -334,8 +334,8 @@ static struct mr6_table *ip6mr_new_table(struct net *net, u32 id)static void ip6mr_free_table (struct mr6_table *mrt) { -del_timer (&mrt->ipmr_expire_timer); -mroute_clean_tables (mrt); +del_timer_sync (&mrt->ipmr_expire_timer); +mroute_clean_tables (mrt, true);kfree (mrt); }
@@ -1473,7 +1473,7 @@ static int ip6mr_mfc_add(struct net *net, struct mr6_table *mrt,* Close the multicast socket, and clear the vif tables etc */ -static void mroute_clean_tables (struct mr6_table *mrt) +static void mroute_clean_tables (struct mr6_table *mrt,bool all) {int i;LIST_HEAD (list);
@@ -1483,8 +1483,9 @@ static void mroute_clean_tables(struct mr6_table *mrt)* Shut down all active vif entries */ for (i =0 ; i < mrt->maxvif; i++) { -if (!(mrt->vif6_table[i].flags &VIFF_STATIC )) -mif6_delete (mrt, i, &list); +if (!all && (mrt->vif6_table[i].flags &VIFF_STATIC )) +continue ; +mif6_delete (mrt, i, &list); }unregister_netdevice_many (&list);
@@ -1493,7 +1494,7 @@ static void mroute_clean_tables(struct mr6_table *mrt)*/ for (i =0 ; i <MFC6_LINES ; i++) {list_for_each_entry_safe (c, next, &mrt->mfc6_cache_array[i], list) { -if (c->mfc_flags &MFC_STATIC ) +if (!all && (c->mfc_flags &MFC_STATIC ))continue ;write_lock_bh (&mrt_lock);list_del (&c->list);
@@ -1547,7 +1548,7 @@ int ip6mr_sk_done(struct sock *sk) net->ipv6.devconf_all->mc_forwarding--;write_unlock_bh (&mrt_lock); -mroute_clean_tables (mrt); +mroute_clean_tables (mrt, false); err =0 ;break ; }
net/ipv6/ipv6_sockglue.c +24 -12
@@ -110,10 +110,12 @@ struct ipv6_txoptions *ipv6_update_options(struct sock *sk, icsk->icsk_ext_hdr_len = opt->opt_flen + opt->opt_nflen; icsk->icsk_sync_mss (sk, icsk->icsk_pmtu_cookie); } - opt =xchg (&inet6_sk (sk)->opt, opt); + opt =xchg ((__force struct ipv6_txoptions **)&inet6_sk (sk)->opt, + opt); }else {spin_lock (&sk->sk_dst_lock); - opt =xchg (&inet6_sk (sk)->opt, opt); + opt =xchg ((__force struct ipv6_txoptions **)&inet6_sk (sk)->opt, + opt);spin_unlock (&sk->sk_dst_lock); }sk_dst_reset (sk);
@@ -213,9 +215,12 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, sk->sk_socket->ops = &inet_dgram_ops; sk->sk_family =PF_INET ; } - opt =xchg (&np->opt,NULL ); -if (opt) -sock_kfree_s (sk, opt, opt->tot_len); + opt =xchg ((__force struct ipv6_txoptions **)&np->opt, +NULL ); +if (opt) { +atomic_sub (opt->tot_len, &sk->sk_omem_alloc); +txopt_put (opt); + } pktopt =xchg (&np->pktoptions,NULL );kfree_skb (pktopt);
@@ -384,7 +389,8 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,if (optname !=IPV6_RTHDR && !capable (CAP_NET_RAW ))break ; - opt =ipv6_renew_options (sk, np->opt, optname, + opt =rcu_dereference_protected (np->opt,sock_owned_by_user (sk)); + opt =ipv6_renew_options (sk, opt, optname, (struct ipv6_opt_hdr __user *)optval, optlen);if (IS_ERR (opt)) {
@@ -413,8 +419,10 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, retv =0 ; opt =ipv6_update_options (sk, opt); sticky_done: -if (opt) -sock_kfree_s (sk, opt, opt->tot_len); +if (opt) { +atomic_sub (opt->tot_len, &sk->sk_omem_alloc); +txopt_put (opt); + }break ; }
@@ -467,6 +475,7 @@ sticky_done:break ;memset (opt,0 ,sizeof (*opt)); +atomic_set (&opt->refcnt,1 ); opt->tot_len =sizeof (*opt) + optlen; retv = -EFAULT ;if (copy_from_user (opt+1 , optval, optlen))
@@ -483,8 +492,10 @@ update: retv =0 ; opt =ipv6_update_options (sk, opt); done: -if (opt) -sock_kfree_s (sk, opt, opt->tot_len); +if (opt) { +atomic_sub (opt->tot_len, &sk->sk_omem_alloc); +txopt_put (opt); + }break ; }case IPV6_UNICAST_HOPS :
@@ -1053,10 +1064,11 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,case IPV6_RTHDR :case IPV6_DSTOPTS : { +struct ipv6_txoptions *opt;lock_sock (sk); - len =ipv6_getsockopt_sticky (sk, np->opt, - optname, optval, len); + opt =rcu_dereference_protected (np->opt,sock_owned_by_user (sk)); + len =ipv6_getsockopt_sticky (sk, opt, optname, optval, len);release_sock (sk);/* check if ipv6_getsockopt_sticky() returns err code */ if (len <0 )
net/ipv6/mcast.c +0 -2
@@ -1441,7 +1441,6 @@ out:if (!err) {ICMP6MSGOUT_INC_STATS (net, idev,ICMPV6_MLD2_REPORT );ICMP6_INC_STATS (net, idev,ICMP6_MIB_OUTMSGS ); -IP6_UPD_PO_STATS (net, idev,IPSTATS_MIB_OUTMCAST , payload_len); }else {IP6_INC_STATS (net, idev,IPSTATS_MIB_OUTDISCARDS ); }
@@ -1811,7 +1810,6 @@ out:if (!err) {ICMP6MSGOUT_INC_STATS (net, idev, type);ICMP6_INC_STATS (net, idev,ICMP6_MIB_OUTMSGS ); -IP6_UPD_PO_STATS (net, idev,IPSTATS_MIB_OUTMCAST , full_len); }else IP6_INC_STATS (net, idev,IPSTATS_MIB_OUTDISCARDS );
net/ipv6/netfilter/nf_conntrack_reasm.c +4 -2
@@ -162,7 +162,7 @@ out:/* Creation primitives. */ static __inline__struct nf_ct_frag6_queue * -fq_find (__be32 id,u32 user,struct in6_addr *src,struct in6_addr *dst) +fq_find (__be32 id,u32 user,struct in6_addr *src,struct in6_addr *dst,int iif) {struct inet_frag_queue *q;struct ip6_create_arg arg;
@@ -172,6 +172,7 @@ fq_find(__be32 id, u32 user, struct in6_addr *src, struct in6_addr *dst) arg.user = user; arg.src = src; arg.dst = dst; + arg.iif = iif;read_lock_bh (&nf_frags.lock); hash =inet6_hash_frag (id, src, dst, nf_frags.rnd);
@@ -558,7 +559,8 @@ struct sk_buff *nf_ct_frag6_gather(struct sk_buff *skb, u32 user)if (atomic_read (&nf_init_frags.mem) > nf_init_frags.high_thresh)nf_ct_frag6_evictor (); - fq =fq_find (fhdr->identification, user, &hdr->saddr, &hdr->daddr); + fq =fq_find (fhdr->identification, user, &hdr->saddr, &hdr->daddr, + skb->dev ? skb->dev->ifindex :0 );if (fq ==NULL ) {pr_debug ("Can't find and can't create new queue\n" ); goto ret_orig;
net/ipv6/raw.c +6 -2
@@ -724,6 +724,7 @@ static int rawv6_probe_proto_opt(struct flowi6 *fl6, struct msghdr *msg)static int rawv6_sendmsg (struct kiocb *iocb,struct sock *sk,struct msghdr *msg,size_t len) { +struct ipv6_txoptions *opt_to_free =NULL ;struct ipv6_txoptions opt_space;struct sockaddr_in6 * sin6 = (struct sockaddr_in6 *) msg->msg_name;struct in6_addr *daddr, *final_p, final;
@@ -830,8 +831,10 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,if (!(opt->opt_nflen|opt->opt_flen)) opt =NULL ; } -if (opt ==NULL ) - opt = np->opt; +if (!opt) { + opt =txopt_get (np); + opt_to_free = opt; + }if (flowlabel) opt =fl6_merge_options (&opt_space, flowlabel, opt); opt =ipv6_fixup_options (&opt_space, opt);
@@ -896,6 +899,7 @@ done:dst_release (dst); out:fl6_sock_release (flowlabel); +txopt_put (opt_to_free);return err<0 ?err:len; do_confirm:dst_confirm (dst);
net/ipv6/reassembly.c +10 -4
@@ -144,8 +144,11 @@ int ip6_frag_match(struct inet_frag_queue *q, void *a) fq = container_of(q, struct frag_queue, q);return (fq->id == arg->id && fq->user == arg->user && -ipv6_addr_equal (&fq->saddr, arg->src) && -ipv6_addr_equal (&fq->daddr, arg->dst)); +ipv6_addr_equal (&fq->saddr, arg->src) && +ipv6_addr_equal (&fq->daddr, arg->dst) && + (arg->iif == fq->iif || + !(ipv6_addr_type (arg->dst) & (IPV6_ADDR_MULTICAST | +IPV6_ADDR_LINKLOCAL )))); }EXPORT_SYMBOL (ip6_frag_match);
@@ -228,7 +231,8 @@ out: }static __inline__struct frag_queue * -fq_find (struct net *net,__be32 id,const struct in6_addr *src,const struct in6_addr *dst) +fq_find (struct net *net,__be32 id,const struct in6_addr *src, +const struct in6_addr *dst,int iif) {struct inet_frag_queue *q;struct ip6_create_arg arg;
@@ -238,6 +242,7 @@ fq_find(struct net *net, __be32 id, const struct in6_addr *src, const struct in6 arg.user =IP6_DEFRAG_LOCAL_DELIVER ; arg.src = src; arg.dst = dst; + arg.iif = iif;read_lock (&ip6_frags.lock); hash =inet6_hash_frag (id, src, dst, ip6_frags.rnd);
@@ -583,7 +588,8 @@ static int ipv6_frag_rcv(struct sk_buff *skb)if (atomic_read (&net->ipv6.frags.mem) > net->ipv6.frags.high_thresh)ip6_evictor (net,ip6_dst_idev (skb_dst (skb))); - fq =fq_find (net, fhdr->identification, &hdr->saddr, &hdr->daddr); + fq =fq_find (net, fhdr->identification, &hdr->saddr, &hdr->daddr, + skb->dev ? skb->dev->ifindex :0 );if (fq !=NULL ) {int ret;
net/ipv6/syncookies.c +1 -1
@@ -238,7 +238,7 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb)memset (&fl6,0 ,sizeof (fl6)); fl6.flowi6_proto =IPPROTO_TCP ;ipv6_addr_copy (&fl6.daddr, &ireq6->rmt_addr); - final_p =fl6_update_dst (&fl6, np->opt, &final); + final_p =fl6_update_dst (&fl6,rcu_dereference (np->opt), &final);ipv6_addr_copy (&fl6.saddr, &ireq6->loc_addr); fl6.flowi6_oif = sk->sk_bound_dev_if; fl6.flowi6_mark = sk->sk_mark;
net/ipv6/tcp_ipv6.c +16 -21
@@ -131,6 +131,7 @@ static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr,struct ipv6_pinfo *np =inet6_sk (sk);struct tcp_sock *tp =tcp_sk (sk);struct in6_addr *saddr =NULL , *final_p, final; +struct ipv6_txoptions *opt;struct rt6_info *rt;struct flowi6 fl6;struct dst_entry *dst;
@@ -252,7 +253,8 @@ static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr, fl6.fl6_dport = usin->sin6_port; fl6.fl6_sport = inet->inet_sport; - final_p =fl6_update_dst (&fl6, np->opt, &final); + opt =rcu_dereference_protected (np->opt,sock_owned_by_user (sk)); + final_p =fl6_update_dst (&fl6, opt, &final);security_sk_classify_flow (sk,flowi6_to_flowi (&fl6));
@@ -295,9 +297,9 @@ static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr, } icsk->icsk_ext_hdr_len =0 ; -if (np->opt) - icsk->icsk_ext_hdr_len = (np->opt->opt_flen + - np->opt->opt_nflen); +if (opt) + icsk->icsk_ext_hdr_len = opt->opt_flen + + opt->opt_nflen; tp->rx_opt.mss_clamp =IPV6_MIN_MTU -sizeof (struct tcphdr ) -sizeof (struct ipv6hdr );
@@ -481,7 +483,6 @@ static int tcp_v6_send_synack(struct sock *sk, struct request_sock *req,struct inet6_request_sock *treq =inet6_rsk (req);struct ipv6_pinfo *np =inet6_sk (sk);struct sk_buff * skb; -struct ipv6_txoptions *opt =NULL ;struct in6_addr * final_p, final;struct flowi6 fl6;struct dst_entry *dst;
@@ -498,8 +499,7 @@ static int tcp_v6_send_synack(struct sock *sk, struct request_sock *req, fl6.fl6_sport =inet_rsk (req)->loc_port;security_req_classify_flow (req,flowi6_to_flowi (&fl6)); - opt = np->opt; - final_p =fl6_update_dst (&fl6, opt, &final); + final_p =fl6_update_dst (&fl6,rcu_dereference (np->opt), &final); dst =ip6_dst_lookup_flow (sk, &fl6, final_p, false);if (IS_ERR (dst)) {
@@ -513,13 +513,12 @@ static int tcp_v6_send_synack(struct sock *sk, struct request_sock *req,__tcp_v6_send_check (skb, &treq->loc_addr, &treq->rmt_addr);ipv6_addr_copy (&fl6.daddr, &treq->rmt_addr); - err =ip6_xmit (sk, skb, &fl6, opt, np->tclass); + err =ip6_xmit (sk, skb, &fl6,rcu_dereference (np->opt), + np->tclass); err =net_xmit_eval (err); } done: -if (opt && opt != np->opt) -sock_kfree_s (sk, opt, opt->tot_len);dst_release (dst);return err; }
@@ -1408,7 +1407,6 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb, } treq =inet6_rsk (req); - opt = np->opt;if (sk_acceptq_is_full (sk)) goto out_overflow;
@@ -1476,16 +1474,15 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,but we make one more one thing there: reattach optmem to newsk. */ + opt =rcu_dereference (np->opt);if (opt) { - newnp->opt =ipv6_dup_options (newsk, opt); -if (opt != np->opt) -sock_kfree_s (sk, opt, opt->tot_len); + opt =ipv6_dup_options (newsk, opt); +RCU_INIT_POINTER (newnp->opt, opt); } - -inet_csk (newsk)->icsk_ext_hdr_len =0 ; -if (newnp->opt) -inet_csk (newsk)->icsk_ext_hdr_len = (newnp->opt->opt_nflen + - newnp->opt->opt_flen); +inet_csk (newsk)->icsk_ext_hdr_len =0 ; +if (opt) +inet_csk (newsk)->icsk_ext_hdr_len = opt->opt_nflen + + opt->opt_flen;tcp_mtup_init (newsk);tcp_sync_mss (newsk,dst_mtu (dst));
@@ -1530,8 +1527,6 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb, out_overflow:NET_INC_STATS_BH (sock_net (sk),LINUX_MIB_LISTENOVERFLOWS ); out_nonewsk: -if (opt && opt != np->opt) -sock_kfree_s (sk, opt, opt->tot_len);dst_release (dst); out:NET_INC_STATS_BH (sock_net (sk),LINUX_MIB_LISTENDROPS );
net/ipv6/udp.c +6 -2
@@ -954,6 +954,7 @@ int udpv6_sendmsg(struct kiocb *iocb, struct sock *sk,struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) msg->msg_name;struct in6_addr *daddr, *final_p, final;struct ipv6_txoptions *opt =NULL ; +struct ipv6_txoptions *opt_to_free =NULL ;struct ip6_flowlabel *flowlabel =NULL ;struct flowi6 fl6;struct dst_entry *dst;
@@ -1107,8 +1108,10 @@ do_udp_sendmsg: opt =NULL ; connected =0 ; } -if (opt ==NULL ) - opt = np->opt; +if (!opt) { + opt =txopt_get (np); + opt_to_free = opt; + }if (flowlabel) opt =fl6_merge_options (&opt_space, flowlabel, opt); opt =ipv6_fixup_options (&opt_space, opt);
@@ -1208,6 +1211,7 @@ do_append_data: out:dst_release (dst);fl6_sock_release (flowlabel); +txopt_put (opt_to_free);if (!err)return len;/*
net/irda/af_irda.c +3 -0
@@ -1106,6 +1106,9 @@ static int irda_create(struct net *net, struct socket *sock, int protocol,IRDA_DEBUG (2 ,"%s()\n" , __func__); +if (protocol <0 || protocol >SK_PROTOCOL_MAX ) +return -EINVAL ; +if (net != &init_net)return -EAFNOSUPPORT ;
net/mac80211/mesh_pathtbl.c +4 -4
@@ -779,10 +779,8 @@ void mesh_plink_broken(struct sta_info *sta)static void mesh_path_node_reclaim (struct rcu_head *rp) { struct mpath_node *node = container_of(rp, struct mpath_node, rcu); -struct ieee80211_sub_if_data *sdata = node->mpath->sdata;del_timer_sync (&node->mpath->timer); -atomic_dec (&sdata->u.mesh.mpaths);kfree (node->mpath);kfree (node); }
@@ -790,8 +788,9 @@ static void mesh_path_node_reclaim(struct rcu_head *rp)/* needs to be called with the corresponding hashwlock taken */ static void __mesh_path_del (struct mesh_table *tbl,struct mpath_node *node) { -struct mesh_path *mpath; - mpath = node->mpath; +struct mesh_path *mpath = node->mpath; +struct ieee80211_sub_if_data *sdata = node->mpath->sdata; +spin_lock (&mpath->state_lock); mpath->flags |=MESH_PATH_RESOLVING ;if (mpath->is_gate)
@@ -799,6 +798,7 @@ static void __mesh_path_del(struct mesh_table *tbl, struct mpath_node *node)hlist_del_rcu (&node->list);call_rcu (&node->rcu, mesh_path_node_reclaim);spin_unlock (&mpath->state_lock); +atomic_dec (&sdata->u.mesh.mpaths);atomic_dec (&tbl->entries); }
net/rds/connection.c +0 -6
@@ -178,12 +178,6 @@ static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, } } -if (trans ==NULL ) { -kmem_cache_free (rds_conn_slab, conn); - conn =ERR_PTR (-ENODEV ); - goto out; - } - conn->c_trans = trans; ret = trans->conn_alloc (conn, gfp);
net/rds/send.c +3 -1
@@ -955,11 +955,13 @@ int rds_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,release_sock (sk); } -/* racing with another thread binding seems ok here */ +lock_sock (sk);if (daddr ==0 || rs->rs_bound_addr ==0 ) { +release_sock (sk); ret = -ENOTCONN ;/* XXX not a great errno */ goto out; } +release_sock (sk);/* size of rm including all sgs */ ret =rds_rm_size (msg, payload_len);
net/sctp/auth.c +2 -2
@@ -804,8 +804,8 @@ int sctp_auth_ep_set_hmacs(struct sctp_endpoint *ep,if (!has_sha1)return -EINVAL ; -memcpy (ep->auth_hmacs_list->hmac_ids, &hmacs->shmac_idents[0 ], - hmacs->shmac_num_idents *sizeof (__u16)); +for (i =0 ; i < hmacs->shmac_num_idents; i++) + ep->auth_hmacs_list->hmac_ids[i] =htons (hmacs->shmac_idents[i]); ep->auth_hmacs_list->param_hdr.length =htons (sizeof (sctp_paramhdr_t) + hmacs->shmac_num_idents *sizeof (__u16));return 0 ;
net/sctp/ipv6.c +8 -0
@@ -635,6 +635,7 @@ static struct sock *sctp_v6_create_accept_sk(struct sock *sk,struct sock *newsk;struct ipv6_pinfo *newnp, *np =inet6_sk (sk);struct sctp6_sock *newsctp6sk; +struct ipv6_txoptions *opt; newsk =sk_alloc (sock_net (sk),PF_INET6 ,GFP_KERNEL , sk->sk_prot);if (!newsk)
@@ -654,6 +655,13 @@ static struct sock *sctp_v6_create_accept_sk(struct sock *sk,memcpy (newnp, np,sizeof (struct ipv6_pinfo )); +rcu_read_lock (); + opt =rcu_dereference (np->opt); +if (opt) + opt =ipv6_dup_options (newsk, opt); +RCU_INIT_POINTER (newnp->opt, opt); +rcu_read_unlock (); +/* Initialize sk's sport, dport, rcv_saddr and daddr for getsockname() * and getpeername(). */
net/sctp/socket.c +11 -1
@@ -6731,6 +6731,9 @@ void sctp_copy_sock(struct sock *newsk, struct sock *sk, newinet->mc_ttl =1 ; newinet->mc_index =0 ; newinet->mc_list =NULL ; + +if (newsk->sk_flags &SK_FLAGS_TIMESTAMP ) +net_enable_timestamp (); } static inline void sctp_copy_descendant(struct sock *sk_to,
@@ -6910,6 +6913,13 @@ struct proto sctp_prot = {#if defined(CONFIG_IPV6 ) || defined(CONFIG_IPV6_MODULE ) +#include <net/transp_v6.h> +static void sctp_v6_destroy_sock (struct sock *sk) +{ +sctp_destroy_sock (sk); +inet6_destroy_sock (sk); +} +struct proto sctpv6_prot = { .name ="SCTPv6" , .owner = THIS_MODULE,
@@ -6919,7 +6929,7 @@ struct proto sctpv6_prot = { .accept = sctp_accept, .ioctl = sctp_ioctl, .init = sctp_init_sock, - .destroy = sctp_destroy_sock, + .destroy = sctp_v6_destroy_sock, .shutdown = sctp_shutdown, .setsockopt = sctp_setsockopt, .getsockopt = sctp_getsockopt,
net/unix/af_unix.c +167 -29
286 lines not on this page · raw message
net/unix/garbage.c +6 -6
@@ -185,7 +185,7 @@ static void scan_inflight(struct sock *x, void (*func)(struct unix_sock *),* have been added to the queues after * starting the garbage collection */ -if (u->gc_candidate) { +if (test_bit (UNIX_GC_CANDIDATE , &u->gc_flags)) { hit = true;func (u); }
@@ -254,7 +254,7 @@ static void inc_inflight_move_tail(struct unix_sock *u)* of the list, so that it's checked even if it was already * passed over */ -if (u->gc_maybe_cycle) +if (test_bit (UNIX_GC_MAYBE_CYCLE , &u->gc_flags))list_move_tail (&u->link, &gc_candidates); }
@@ -315,8 +315,8 @@ void unix_gc(void)BUG_ON (total_refs < inflight_refs);if (total_refs == inflight_refs) {list_move_tail (&u->link, &gc_candidates); - u->gc_candidate =1 ; - u->gc_maybe_cycle =1 ; +__set_bit (UNIX_GC_CANDIDATE , &u->gc_flags); +__set_bit (UNIX_GC_MAYBE_CYCLE , &u->gc_flags); } }
@@ -344,7 +344,7 @@ void unix_gc(void)if (atomic_long_read (&u->inflight) >0 ) {list_move_tail (&u->link, ¬_cycle_list); - u->gc_maybe_cycle =0 ; +__clear_bit (UNIX_GC_MAYBE_CYCLE , &u->gc_flags);scan_children (&u->sk, inc_inflight_move_tail,NULL ); } }
@@ -356,7 +356,7 @@ void unix_gc(void)*/ while (!list_empty (¬_cycle_list)) { u = list_entry(not_cycle_list.next, struct unix_sock, link); - u->gc_candidate =0 ; +__clear_bit (UNIX_GC_CANDIDATE , &u->gc_flags);list_move_tail (&u->link, &gc_inflight_list); }
sound/pci/rme96.c +26 -15
75 lines not on this page · raw message
sound/soc/codecs/wm8962.c +2 -2
@@ -373,8 +373,8 @@ static const u16 wm8962_reg[WM8962_MAX_REGISTER + 1] = { [16924] = 0x0059, /* R16924 - HDBASS_PG_1 */ [16925] = 0x999A, /* R16925 - HDBASS_PG_0 */ - [17048] = 0x0083, /* R17408 - HPF_C_1 */ - [17049] = 0x98AD, /* R17409 - HPF_C_0 */ + [17408] = 0x0083, /* R17408 - HPF_C_1 */ + [17409] = 0x98AD, /* R17409 - HPF_C_0 */ [17920] = 0x007F, /* R17920 - ADCL_RETUNE_C1_1 */ [17921] = 0xFFFF, /* R17921 - ADCL_RETUNE_C1_0 */
sound/usb/midi.c +46 -0
76 lines not on this page · raw message
sound/usb/quirks-table.h +11 -0
@@ -2611,6 +2611,17 @@ YAMAHA_DEVICE(0x7010, "UB99"), .idProduct = 0x1020, }, +/* QinHeng devices */ +{ + USB_DEVICE(0x1a86, 0x752d), + .driver_info = (unsigned long ) &(const struct snd_usb_audio_quirk ) { + .vendor_name ="QinHeng" , + .product_name ="CH345" , + .ifnum =1 , + .type =QUIRK_MIDI_CH345 + } +}, +/* KeithMcMillen Stringport */ { USB_DEVICE(0x1f38, 0x0001),
sound/usb/quirks.c +1 -0
@@ -311,6 +311,7 @@ int snd_usb_create_quirk(struct snd_usb_audio *chip, [QUIRK_MIDI_CME] = create_any_midi_quirk, [QUIRK_MIDI_AKAI] = create_any_midi_quirk, [QUIRK_MIDI_FTDI] = create_any_midi_quirk, + [QUIRK_MIDI_CH345] = create_any_midi_quirk, [QUIRK_AUDIO_STANDARD_INTERFACE] = create_standard_audio_quirk, [QUIRK_AUDIO_FIXED_ENDPOINT] = create_fixed_stream_quirk, [QUIRK_AUDIO_EDIROL_UAXX] = create_uaxx_quirk,
sound/usb/usbaudio.h +1 -0
@@ -81,6 +81,7 @@ enum quirk_type {QUIRK_MIDI_AKAI ,QUIRK_MIDI_US122L ,QUIRK_MIDI_FTDI , +QUIRK_MIDI_CH345 ,QUIRK_AUDIO_STANDARD_INTERFACE ,QUIRK_AUDIO_FIXED_ENDPOINT , QUIRK_AUDIO_EDIROL_UAXX,