seq_file: remove "%n" usage from seq_file users

All seq_printf() users are using "%n" for calculating padding size,
convert them to use seq_setwidth() / seq_pad() pair.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Joe Perches <joe@perches.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: 652586df95e5d76b37d07a11839126dcfede1621
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[rsiddoji@codeaurora.org: Resolve merge conflicts with ipv4/6 ping
 changes in upstream]
CRs-fixed: 665291
Change-Id: Ia0416c9dbe3d80ff35f24f9c93c3543d1200a327
Signed-off-by: Ravi Kumar <rsiddoji@codeaurora.org>
target/rd: Refactor rd_build_device_space + rd_release_device_space

This patch refactors rd_build_device_space() + rd_release_device_space()
into rd_allocate_sgl_table() + rd_release_device_space() so that they
may be used seperatly for setup + release of protection information
scatterlists.

Also add explicit memset of pages within rd_allocate_sgl_table() based
upon passed 'init_payload' value.

v2 changes:
  - Drop unused sg_table from rd_release_device_space (Wei)

Change-Id: I0d42113c0e2d703fe7567a804003b034fd4fa0b7
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Git-commit:4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc
Git-repo:https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
[ggober@codeaurora.org:resolve trivial merge conflicts in target_core_rd.c]
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
defconfig: Enable bridging and ebtables

This patch enables bridging and ebtables BROUTING support
for IPv6 tethering

Change-Id: Iac394e1f89e3976a971524a453927057bf868d50
Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>
qseecom:  Add checks for send_cmd inputs

Improve user input validation across send cmd APIs. Add new
API  __validate_send_cmd_inputs() to validate all user provided
inputs.

Change-Id: Ibbb0c0e7e5483f653bd59b927562b63c1e43c365
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Merge "seq_file: remove "%n" usage from seq_file users"
nl80211: check nla_put_* return values

Coverity pointed out that in a few functions we don't
check the return value of the nla_put_*() calls. Most
of these are fairly harmless because the input isn't
very dynamic and controlled by the kernel, but the
pattern is simply wrong, so fix this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: ae917c9f55862691e31b84de7ec29bedcb83971c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I571d29b19efa1090b2d8560b57f5f28777f129b0
Signed-off-by: Ahmad Kholaif <akholaif@codeaurora.org>
Merge "target/rd: Refactor rd_build_device_space + rd_release_device_space"
Merge "nl80211: check nla_put_* return values"
Merge "qseecom:  Add checks for send_cmd inputs"
dtc: add integer overflow checks in fdt header

Protect against integer overflows caused by malformed fdt headers.

CRs-Fixed: 749977
Change-Id: I51d87038f520bc761b163d291b0138c513c69a33
Signed-off-by: Vijay Kumar Pendoti <vpendo@codeaurora.org>
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Merge "defconfig: Enable bridging and ebtables"
Merge "dtc: add integer overflow checks in fdt header"
 SoC: msm: Add Buffer overflow check

The overflow check is required to ensure that user space data
in kernel may not go beyond buffer boundary.

CRs-Fixed: 563086
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
(cherry picked from commit 7e09949355b2dac9aac8bb414037ccaca3c68d86)
Signed-off-by: Pavan Chikkala <pavanc@codeaurora.org>

Change-Id: I4da774740c71b97dc2e4fd16c78bf065ad457690
Signed-off-by: Pavan Chikkala <pavanc@codeaurora.org>
Merge " SoC: msm: Add Buffer overflow check"
Merge tag 'AU_LINUX_ANDROID_LA.AF.1.1_RB1.05.00.00.006.013' into lp-merge

AU_LINUX_ANDROID_LA.AF.1.1_RB1.05.00.00.006.013 based on quic/aosp/LA.AF.1.1_rb1

Change-Id: I77d867cada38fec44b0cd5d7c8d5d924e5b49e37
Wlan: Update Prima wlan to LA.AF.1.1_rb1.7

commit 631ac8fb936b541c4f527cd812da5b224034ff58
Author: Sachin Ahuja <sahuja@qti.qualcomm.com>
Date:   Wed Nov 12 18:57:11 2014 +0530

    wlan: Added the gEnableDFSPnoChnlScan ini parameter

    Currently DFS channels are sent as a part of PNO request.
    This ini variable is added to enable/disable the DFS
    channels in PNO request
    Also added a check to handle the scenario where all the
    channels sent by supplicant are DFS in PNO request.

    Change-Id: Ie95e74bd46ff442eb71451007fa4aa2331d61252
    CRs-Fixed: 754763

commit b5f6661a4bd27849330c5482d7ff6770926e2cff
Author: Mahesh A Saptasagar <c_msapta@qti.qualcomm.com>
Date:   Sun Nov 2 15:26:08 2014 +0530

    wlan: Address kernel panic due to invalid memory access

    Do not nullify req->ie pointer in cfg80211_scan_done function which
    will cause kernel panic if trace functionality is enabled.

    Change-Id: I4de8e8cf9f2f640b9b9b940fa5f2403264b103ef
    CRs-Fixed: 746986

commit c73bcb8c0cb761891a16078e9f83bbd9909951ef
Author: Abhishek Singh <absingh@qti.qualcomm.com>
Date:   Tue Nov 18 13:11:11 2014 +0530

    wlan: Assign callback to resume TX if secondary channel is changed.

    If secondary channel is changed, host is not calling the callback
    and thus the resume tx is not called once channel is changed.
    This logic is already present in case if only primary channel
    has changed.

    Added the logic to call the callback in case secondary channel is
    changed and thus resume TX will be called after channel is changed.

    Change-Id: I14fd08525210ce64d02c151b47edb5d966787ec9
    CRs-Fixed: 756595

commit 39d1d97ab06702fc1bfe1d4c59c1430bd50cb6a3
Author: Hanumantha Reddy Pothula <c_hpothu@codeaurora.org>
Date:   Sat Mar 22 19:22:31 2014 +0530

    wlan: Do DEL_STA if driver gets deauth during ADD_STA.

    Add new resultCode, 'eSIR_SME_JOIN_DEAUTH_FROM_AP_DURING_ADD_STA',
    to make sure driver does DEL_STA follwed by DEL_BSS, if driver
    receives DEAUTH frame when it's waiting for ADD_STA_RSP.

    Change-Id: I560430642686477103085bc3762b959003513f92
    CRs-Fixed: 599416.

commit 3a843a4f410beed314e225fdd736dbea458809e2
Author: Vinay Krishna Eranna <c_veran@qti.qualcomm.com>
Date:   Mon Oct 27 16:45:54 2014 +0530

    wlan: validate the driver status during interface down

    Validate the driver status before handling interface down in
    hdd_stop function. This avoids any access to invalid data
    during SSR or load/unload process.

    Change-Id: Iff9b91cc51a11b2b0e556a5ba3cd94ecb77fa5f7
    CRs-Fixed: 744263

commit 031d251f890b2c89f5f2046c690e941ed2c705ef
Author: mukul sharma <mukul@codeaurora.org>
Date:   Mon Sep 8 23:47:06 2014 +0530

    wlan: Handle TX queues timeout when deauth come during ADD STA REQ

    During Roaming Driver Disable the Tx queue and enable after
    reassoc completion, but if deauth comes during roaming when
    host is waiting for ADD STA RSP from fwr then Lim need to
    send the reassoc resp with failure reason which in turn call
    CSR to hdd for initiate disconnection handling. Currently this
    reassoc response code was not handled into the CSR so clean-up
    path for HDD is not getting invoked. Hence queues were remains
    disabled and kernel panic occur.

    Change-Id: Ib3572e4efd93891aff011dece3cb018041c0a08f
    CRs-Fixed: 721012

commit 37834b1881c451618f5ac0523b4144acd5704ed2
Author: Agarwal Ashish <ashishka@qti.qualcomm.com>
Date:   Tue Nov 4 18:40:38 2014 +0530

    wlan: Minimizing the retry log for Re/Assoc Rsp frame.

    Due to some AP; Dut is receiving Re/assoc frame in wrong
    state. Log "received Re/Assoc rsp frame is not a retry frame"
    prints excessively when some buggy AP keep sending Re/Assoc frame.
    Minimizing the logs once in 15 prints.

    CRs-Fixed: 750400
    Change-Id: I27725dd16de49ad5641256e7999c923fedf63131

commit e652e3a81df9d27cb1ebd0ccd1211de0f08fbd80
Author: Abhishek Singh <absingh@qti.qualcomm.com>
Date:   Tue Nov 11 13:02:40 2014 +0530

    wlan: Ignore PNO indication if the channel is not valid for CC.

    In Riva there is no change channel list event sent to FW after
    CC is changed. Due to this Host gets PNO indication for the
    channels which were valid for default country but are invalid
    for current country.

    Ignore the PNO indication if the channel is not valid for CC.

    Change-Id: Id28ddec1abe8d4168d68ea26e0cc985946110deb
    CRs-fixed: 753922

Change-Id: I9cd2f5756f2018dfb737c6e096697d193501abba