firefly-linux-kernel-4.4.55.git
14 years agodwc_otg: fix compile error
黄涛 [Tue, 21 Dec 2010 10:54:50 +0000 (18:54 +0800)]
dwc_otg: fix compile error

14 years agork29: rk29_fb:
陈恒明 [Tue, 21 Dec 2010 10:02:25 +0000 (02:02 -0800)]
rk29: rk29_fb:
change video overlay ioctrl to block interface

14 years agoadd clock gate in usb module
yangkai [Tue, 21 Dec 2010 09:25:22 +0000 (17:25 +0800)]
add clock gate in usb module

14 years agoadd pwm voltage regulator
hxy [Tue, 21 Dec 2010 08:53:47 +0000 (16:53 +0800)]
add pwm voltage regulator

14 years agodelay more time for sd card input for rk29
lhh [Tue, 21 Dec 2010 07:07:37 +0000 (15:07 +0800)]
delay more time for sd card input for rk29

14 years agoupdate fb for win0 swap
zyw [Tue, 21 Dec 2010 03:43:52 +0000 (11:43 +0800)]
update fb for win0 swap

14 years agomodify usb lun number to 2, and vendor id to be HTC
陈辉 [Tue, 21 Dec 2010 01:59:04 +0000 (09:59 +0800)]
modify usb lun number to 2, and vendor id to be HTC

14 years agoBT: modify config file
陈智 [Mon, 20 Dec 2010 14:31:09 +0000 (22:31 +0800)]
BT: modify config file

14 years agoBT: add bluetooth bcm4329 driver
陈智 [Mon, 20 Dec 2010 13:45:12 +0000 (21:45 +0800)]
BT: add bluetooth bcm4329 driver

14 years agoenable hdmi audio output
kfx [Mon, 20 Dec 2010 12:47:31 +0000 (20:47 +0800)]
enable hdmi audio output

14 years agoupdate i2s and codec setting
fang [Mon, 20 Dec 2010 09:27:15 +0000 (17:27 +0800)]
update i2s and codec setting

14 years agork29: enlarge vpu_mem size from 32M to 64M
黄涛 [Mon, 20 Dec 2010 07:51:13 +0000 (15:51 +0800)]
rk29: enlarge vpu_mem size from 32M to 64M

14 years agoRevert "rk29: enlarge vpu_mem size from 32M to 48M"
黄涛 [Mon, 20 Dec 2010 07:49:36 +0000 (15:49 +0800)]
Revert "rk29: enlarge vpu_mem size from 32M to 48M"

This reverts commit 5363b680a918a3d122762eaeca4623fe456c1436.

14 years agork29: enlarge vpu_mem size from 32M to 48M
陈恒明 [Mon, 20 Dec 2010 07:31:37 +0000 (23:31 -0800)]
rk29: enlarge vpu_mem size from 32M to 48M

14 years agoadd network filesystem configs for rk29_sdk_defconfig
lyx [Mon, 20 Dec 2010 07:12:27 +0000 (23:12 -0800)]
add network filesystem configs for rk29_sdk_defconfig

14 years agoadd hdmi driver
kfx [Mon, 20 Dec 2010 06:58:15 +0000 (14:58 +0800)]
add hdmi driver

14 years agohannstar_p1003: use async init and msleep
黄涛 [Mon, 20 Dec 2010 06:32:03 +0000 (14:32 +0800)]
hannstar_p1003: use async init and msleep

14 years agoimprove the part of p1003 speed
sakura [Mon, 20 Dec 2010 02:15:07 +0000 (10:15 +0800)]
improve the part of p1003 speed

14 years agork29: update Kconfig
黄涛 [Sun, 19 Dec 2010 06:55:42 +0000 (14:55 +0800)]
rk29: update Kconfig

14 years agocamera:add rk29_Winaccord_defconfig support camera, board file update
ddl [Sun, 19 Dec 2010 05:18:35 +0000 (13:18 +0800)]
camera:add rk29_Winaccord_defconfig support camera, board file update

14 years agocamera: fix ov2655 driver support IPP
ddl [Sun, 19 Dec 2010 04:43:26 +0000 (12:43 +0800)]
camera: fix ov2655 driver support IPP

14 years agofromdos
黄涛 [Sun, 19 Dec 2010 02:42:54 +0000 (10:42 +0800)]
fromdos

14 years agoadd rk29 Winaccord board config
lhh [Sat, 18 Dec 2010 11:37:59 +0000 (19:37 +0800)]
add rk29 Winaccord board config

14 years agoadd rk29 Winaccord board
lhh [Sat, 18 Dec 2010 11:36:49 +0000 (19:36 +0800)]
add rk29 Winaccord board

14 years agork29: rm vreg.h
黄涛 [Sat, 18 Dec 2010 06:47:55 +0000 (14:47 +0800)]
rk29: rm vreg.h

14 years agork29: add pmu.h
黄涛 [Sat, 18 Dec 2010 06:43:38 +0000 (14:43 +0800)]
rk29: add pmu.h

14 years agoupdate i2s
fang [Sat, 18 Dec 2010 02:46:25 +0000 (10:46 +0800)]
update i2s

14 years agoadd p1003 x,y config
sakura [Fri, 17 Dec 2010 08:07:14 +0000 (16:07 +0800)]
add p1003 x,y config

14 years agoMerge branch 'develop' of xjh@10.10.10.29:/home/rockchip/kernel into develop
root [Sat, 18 Dec 2010 01:34:56 +0000 (09:34 +0800)]
Merge branch 'develop' of xjh@10.10.10.29:/home/rockchip/kernel into develop

14 years agofix some usb host bug for 3g modem, update rk29_deconfig
yangkai [Sat, 18 Dec 2010 01:13:08 +0000 (09:13 +0800)]
fix some usb host bug for 3g modem, update rk29_deconfig

14 years agoMerge branch 'develop' of zyf@10.10.10.29:/home/rockchip/kernel into develop
zhaoyifeng [Sat, 18 Dec 2010 00:33:08 +0000 (08:33 +0800)]
Merge branch 'develop' of zyf@10.10.10.29:/home/rockchip/kernel into develop

14 years agohannstar_p1003: 使用独立的RT工作队列,提高响应速度
黄涛 [Fri, 17 Dec 2010 14:32:56 +0000 (22:32 +0800)]
hannstar_p1003: 使用独立的RT工作队列,提高响应速度

14 years agosupport build uu -> o
黄涛 [Fri, 17 Dec 2010 14:03:17 +0000 (22:03 +0800)]
support build uu -> o

14 years ago[xjh] gsensor early suspend
root [Fri, 17 Dec 2010 12:17:52 +0000 (20:17 +0800)]
[xjh] gsensor early suspend

14 years agoadd rknand write buffer
zhaoyifeng [Fri, 17 Dec 2010 10:13:12 +0000 (18:13 +0800)]
add rknand write buffer

14 years agoupdate recode for codec setting
fang [Fri, 17 Dec 2010 10:09:29 +0000 (18:09 +0800)]
update recode for codec setting

14 years agodefconfig: add camera defconfig
ddl [Fri, 17 Dec 2010 09:52:47 +0000 (17:52 +0800)]
defconfig: add camera defconfig

14 years agoadd rknand write buffer.
zhaoyifeng [Fri, 17 Dec 2010 09:34:46 +0000 (17:34 +0800)]
add rknand write buffer.

14 years agoadd rknand write buffer.
zhaoyifeng [Fri, 17 Dec 2010 09:30:36 +0000 (17:30 +0800)]
add rknand write buffer.

14 years agocamera:add limit ipp scale ratio when work with camera
ddl [Fri, 17 Dec 2010 08:50:31 +0000 (16:50 +0800)]
camera:add limit ipp scale ratio when work with camera

14 years agodisable fb's three buf support
杜坤明 [Fri, 17 Dec 2010 08:58:47 +0000 (16:58 +0800)]
disable fb's three buf support

14 years agoadd three buf support of fb; enhance gpu's mmu table size to 256k
杜坤明 [Fri, 17 Dec 2010 08:56:30 +0000 (16:56 +0800)]
add three buf support of fb; enhance gpu's mmu table size to 256k

14 years ago[xjh] gsensor with debug open
root [Fri, 17 Dec 2010 08:23:55 +0000 (16:23 +0800)]
[xjh] gsensor with debug open

14 years agoMerge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop
cmc [Fri, 17 Dec 2010 07:06:34 +0000 (15:06 +0800)]
Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop

14 years agousb2.0 host & usb1.1 host support
yangkai [Fri, 17 Dec 2010 03:12:42 +0000 (11:12 +0800)]
usb2.0 host & usb1.1 host support

14 years agork29: enable cpufreq framework
黄涛 [Fri, 17 Dec 2010 03:01:34 +0000 (11:01 +0800)]
rk29: enable cpufreq framework

14 years agofix interrupt recv bug for spi
cmc [Fri, 17 Dec 2010 02:48:56 +0000 (10:48 +0800)]
fix interrupt recv bug for spi

14 years agoMerge remote branch 'linux-2.6.32.y/master' into develop
黄涛 [Thu, 16 Dec 2010 12:54:24 +0000 (20:54 +0800)]
Merge remote branch 'linux-2.6.32.y/master' into develop

Conflicts:
drivers/i2c/busses/Kconfig
drivers/net/dm9000.c
drivers/net/wireless/libertas/if_sdio1.c
drivers/usb/serial/option.c
net/bluetooth/rfcomm/core.c

14 years agoIPP:fix write register error when IPP operate reset. wy commit
ddl [Thu, 16 Dec 2010 12:02:04 +0000 (20:02 +0800)]
IPP:fix write register error when IPP operate reset.  wy  commit

14 years agocamera and ipp: modify camera driver and ipp driver, camera can work with ipp
ddl [Thu, 16 Dec 2010 11:00:25 +0000 (19:00 +0800)]
camera and ipp: modify camera driver and ipp driver, camera can work with ipp

14 years agocamera:add support const-focus AF firmware for ov5642
ddl [Tue, 14 Dec 2010 10:28:40 +0000 (18:28 +0800)]
camera:add support const-focus AF firmware for ov5642

14 years agoadd pwm vcore macro
hxy [Thu, 16 Dec 2010 10:44:27 +0000 (18:44 +0800)]
add pwm vcore macro

14 years agork29: vpu_mem: fix bug when link inner-process region
陈恒明 [Thu, 16 Dec 2010 08:31:50 +0000 (00:31 -0800)]
rk29: vpu_mem: fix bug when link inner-process region

14 years agoadd ipp driver.
root [Thu, 16 Dec 2010 07:28:05 +0000 (15:28 +0800)]
add ipp driver.

14 years agomodified nand flash driver for new structure
hxy [Thu, 16 Dec 2010 06:30:15 +0000 (14:30 +0800)]
modified nand flash driver for new structure

14 years agoLimit the gpu's dma mem of size
杜坤明 [Thu, 16 Dec 2010 06:21:01 +0000 (14:21 +0800)]
Limit the gpu's dma mem of size

14 years agomodify framebuff 24bit color
root [Wed, 15 Dec 2010 12:08:08 +0000 (20:08 +0800)]
modify framebuff 24bit color

14 years agomodify framebuff to 24bit color
root [Wed, 15 Dec 2010 12:01:38 +0000 (20:01 +0800)]
modify framebuff to 24bit color

14 years agoupdate sdmmc when dma err stop and flush dma
lhh [Wed, 15 Dec 2010 10:10:19 +0000 (18:10 +0800)]
update sdmmc when dma err stop and flush dma

14 years agooff debug input key printk and sdmmc debug
lhh [Wed, 15 Dec 2010 09:21:07 +0000 (17:21 +0800)]
off debug input key printk and sdmmc debug

14 years agork29xx vmac: update function create_multicast_filter and vmac_set_multicast_list
lyx [Wed, 15 Dec 2010 08:18:39 +0000 (00:18 -0800)]
rk29xx vmac: update function create_multicast_filter and vmac_set_multicast_list

14 years agoclose win0 when no addr
zyw [Wed, 15 Dec 2010 06:55:50 +0000 (14:55 +0800)]
close win0 when no addr

14 years agoupdata gpu driver & lcdc priority
杜坤明 [Wed, 15 Dec 2010 04:02:08 +0000 (12:02 +0800)]
updata gpu driver & lcdc priority

14 years agork29: clock: 临时将core电压调高到1.4v,提高系统稳定性
黄涛 [Wed, 15 Dec 2010 01:43:43 +0000 (09:43 +0800)]
rk29: clock: 临时将core电压调高到1.4v,提高系统稳定性

14 years agofix p1003 irq
sakura [Tue, 14 Dec 2010 10:31:29 +0000 (18:31 +0800)]
fix p1003 irq

14 years agofix p1003 irq
sakura [Tue, 14 Dec 2010 10:16:28 +0000 (18:16 +0800)]
fix p1003 irq

14 years agofix p1003 irq
sakura [Tue, 14 Dec 2010 10:13:38 +0000 (18:13 +0800)]
fix p1003 irq

14 years agowifi: add wifi virtual card detect support
lbt [Tue, 14 Dec 2010 06:22:47 +0000 (14:22 +0800)]
wifi: add wifi virtual card detect support

14 years agork29: vpu_mem: add /proc/vpu_mem module
陈恒明 [Tue, 14 Dec 2010 06:20:01 +0000 (22:20 -0800)]
rk29: vpu_mem: add /proc/vpu_mem module

14 years agork29: clock: add hdmi support
黄涛 [Tue, 14 Dec 2010 06:04:55 +0000 (14:04 +0800)]
rk29: clock: add hdmi support

14 years agoadd rk29xx vmac driver
lyx [Tue, 14 Dec 2010 04:43:35 +0000 (20:43 -0800)]
add rk29xx vmac driver

14 years agoremove vpu_mem warning
陈恒明 [Tue, 14 Dec 2010 02:34:56 +0000 (18:34 -0800)]
remove vpu_mem warning

14 years agocamera: add auto focus function for ov5642
ddl [Mon, 13 Dec 2010 12:33:48 +0000 (20:33 +0800)]
camera: add auto focus function for ov5642

14 years agoopen rk29 sdmmc for dma use
lhh [Mon, 13 Dec 2010 12:35:53 +0000 (20:35 +0800)]
open rk29 sdmmc for dma use

14 years agochange freq of gpu to 312M
杜坤明 [Mon, 13 Dec 2010 08:47:31 +0000 (16:47 +0800)]
change freq of gpu to 312M

14 years agomodify fb for switch to hdmi
zyw [Mon, 13 Dec 2010 04:57:33 +0000 (12:57 +0800)]
modify fb for switch to hdmi

14 years agomodify fb win1 buf alloc
zyw [Mon, 13 Dec 2010 04:42:51 +0000 (12:42 +0800)]
modify fb win1 buf alloc

14 years agowifi: 1. use dma transfer for sdmmc1 controller
lbt [Sun, 12 Dec 2010 10:31:11 +0000 (18:31 +0800)]
wifi: 1. use dma transfer for sdmmc1 controller
      2. optimization for bcm4329 Makefile

14 years agork29sdk: defconfig add wm8900
黄涛 [Sat, 11 Dec 2010 04:29:00 +0000 (12:29 +0800)]
rk29sdk: defconfig add wm8900

14 years agoadd delay more sdmmc
lhh [Sat, 11 Dec 2010 04:18:23 +0000 (12:18 +0800)]
add delay more sdmmc

14 years agono battery ic set and sdmmc timeout add more
lhh [Sat, 11 Dec 2010 03:48:24 +0000 (11:48 +0800)]
no battery ic set and sdmmc timeout add more

14 years agork29: L2 cache设置变更。根据IC部的建议,810~972频率,data ram latency设为6 cycles
黄涛 [Fri, 10 Dec 2010 10:05:40 +0000 (18:05 +0800)]
rk29: L2 cache设置变更。根据IC部的建议,810~972频率,data ram latency设为6 cycles

14 years agork29: timer: use periph sync timer
黄涛 [Fri, 10 Dec 2010 08:34:24 +0000 (16:34 +0800)]
rk29: timer: use periph sync timer

14 years agomodify lcd freq
zyw [Fri, 10 Dec 2010 08:31:04 +0000 (16:31 +0800)]
modify lcd freq

14 years agoupdata rk29 battery for ti
lhh [Fri, 10 Dec 2010 07:42:40 +0000 (15:42 +0800)]
updata rk29 battery for ti

14 years agork29: add L2 cache setup
黄涛 [Fri, 10 Dec 2010 07:11:32 +0000 (15:11 +0800)]
rk29: add L2 cache setup

14 years agoclock: fix aclk_periph parent setup
黄涛 [Fri, 10 Dec 2010 07:05:05 +0000 (15:05 +0800)]
clock: fix aclk_periph parent setup

14 years agoMerge branch 'develop' of lhh@10.10.10.29:/home/rockchip/kernel into develop
lhh [Fri, 10 Dec 2010 06:24:03 +0000 (14:24 +0800)]
Merge branch 'develop' of lhh@10.10.10.29:/home/rockchip/kernel into develop

14 years agoupdate rk29 sdmmc
lhh [Fri, 10 Dec 2010 06:23:18 +0000 (14:23 +0800)]
update rk29 sdmmc

14 years agork29sdk: 支持内存大小配置,默认512MiB
黄涛 [Fri, 10 Dec 2010 05:17:42 +0000 (13:17 +0800)]
rk29sdk: 支持内存大小配置,默认512MiB

14 years agork29 l1 cache lize size is 64 bytes
黄涛 [Fri, 10 Dec 2010 04:49:51 +0000 (12:49 +0800)]
rk29 l1 cache lize size is 64 bytes

14 years agoLinux 2.6.32.27
Greg Kroah-Hartman [Thu, 9 Dec 2010 21:29:45 +0000 (13:29 -0800)]
Linux 2.6.32.27

14 years agox86: uv: xpc NULL deref when mesq becomes empty
Robin Holt [Wed, 16 Dec 2009 00:47:57 +0000 (16:47 -0800)]
x86: uv: xpc NULL deref when mesq becomes empty

commit 15b87d67ff3dc042bee42f991858d6b121b3b3ca upstream.

Under heavy load conditions, our set of xpc messages may become exhausted.
 The code handles this correctly with the exception of the management code
which hits a NULL pointer dereference.

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoX86: uv: xpc_make_first_contact hang due to not accepting ACTIVE state
Robin Holt [Wed, 16 Dec 2009 00:47:58 +0000 (16:47 -0800)]
X86: uv: xpc_make_first_contact hang due to not accepting ACTIVE state

commit dbd2918ec65c35f36bb102c88eafe87be0552f6f upstream.

Many times while the initial connection is being made, the contacted
partition will send back both the ACTIVATING and the ACTIVE
remote_act_state changes in very close succescion.  The 1/4 second delay
in the make first contact loop is large enough to nearly always miss the
ACTIVATING state change.

Since either state indicates the remote partition has acknowledged our
state change, accept either.

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agox86: uv: XPC receive message reuse triggers invalid BUG_ON()
Robin Holt [Wed, 16 Dec 2009 00:47:59 +0000 (16:47 -0800)]
x86: uv: XPC receive message reuse triggers invalid BUG_ON()

commit 046d6c563b1c6226bbf0f84e5b2413ad8ab921a1 upstream.

This was a difficult bug to trip.  XPC was in the middle of sending an
acknowledgement for a received message.

In xpc_received_payload_uv():
.
        ret = xpc_send_gru_msg(ch->sn.uv.cached_notify_gru_mq_desc, msg,
                               sizeof(struct xpc_notify_mq_msghdr_uv));
        if (ret != xpSuccess)
                XPC_DEACTIVATE_PARTITION(&xpc_partitions[ch->partid], ret);

        msg->hdr.msg_slot_number += ch->remote_nentries;

at the point in xpc_send_gru_msg() where the hardware has dispatched the
acknowledgement, the remote side is able to reuse the message structure
and send a message with a different slot number.  This problem is made
worse by interrupts.

The adjustment of msg_slot_number and the BUG_ON in
xpc_handle_notify_mq_msg_uv() which verifies the msg_slot_number is
consistent are only used for debug purposes.  Since a fix for this that
preserves the debug functionality would either have to infringe upon the
payload or allocate another structure just for debug, I decided to remove
it entirely.

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoUV - XPC: pass nasid instead of nid to gru_create_message_queue
Robin Holt [Wed, 16 Dec 2009 00:48:00 +0000 (16:48 -0800)]
UV - XPC: pass nasid instead of nid to gru_create_message_queue

commit 57e6d258b1e41cd7ceb26fa43ce116939d8440b1 upstream.

Currently, the UV xpc code is passing nid to the gru_create_message_queue
instead of nasid as it expects.

Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agonet sched: fix some kernel memory leaks
Eric Dumazet [Mon, 16 Aug 2010 20:04:22 +0000 (20:04 +0000)]
net sched: fix some kernel memory leaks

commit 1c40be12f7d8ca1d387510d39787b12e512a7ce8 upstream.

We leak at least 32bits of kernel memory to user land in tc dump,
because we dont init all fields (capab ?) of the dumped structure.

Use C99 initializers so that holes and non explicit fields are zeroed.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: dann frazier <dannf@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoact_nat: use stack variable
Changli Gao [Tue, 29 Jun 2010 23:07:09 +0000 (23:07 +0000)]
act_nat: use stack variable

commit 504f85c9d05f7c605306e808f0d835fe11bfd18d upstream.

act_nat: use stack variable

structure tc_nat isn't too big for stack, so we can put it in stack.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Cc: dann frazier <dannf@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agonmi: fix clock comparator revalidation
Heiko Carstens [Thu, 25 Nov 2010 08:52:45 +0000 (09:52 +0100)]
nmi: fix clock comparator revalidation

commit e8129c642155616d9e2160a75f103e127c8c3708 upstream.

On each machine check all registers are revalidated. The save area for
the clock comparator however only contains the upper most seven bytes
of the former contents, if valid.
Therefore the machine check handler uses a store clock instruction to
get the current time and writes that to the clock comparator register
which in turn will generate an immediate timer interrupt.
However within the lowcore the expected time of the next timer
interrupt is stored. If the interrupt happens before that time the
handler won't be called. In turn the clock comparator won't be
reprogrammed and therefore the interrupt condition stays pending which
causes an interrupt loop until the expected time is reached.

On NOHZ machines this can result in unresponsive machines since the
time of the next expected interrupted can be a couple of days in the
future.

To fix this just revalidate the clock comparator register with the
expected value.
In addition the special handling for udelay must be changed as well.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agonet: Limit socket I/O iovec total length to INT_MAX.
David S. Miller [Thu, 28 Oct 2010 18:41:55 +0000 (11:41 -0700)]
net: Limit socket I/O iovec total length to INT_MAX.

commit 8acfe468b0384e834a303f08ebc4953d72fb690a upstream.

This helps protect us from overflow issues down in the
individual protocol sendmsg/recvmsg handlers.  Once
we hit INT_MAX we truncate out the rest of the iovec
by setting the iov_len members to zero.

This works because:

1) For SOCK_STREAM and SOCK_SEQPACKET sockets, partial
   writes are allowed and the application will just continue
   with another write to send the rest of the data.

2) For datagram oriented sockets, where there must be a
   one-to-one correspondance between write() calls and
   packets on the wire, INT_MAX is going to be far larger
   than the packet size limit the protocol is going to
   check for and signal with -EMSGSIZE.

Based upon a patch by Linus Torvalds.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>