msm: vidc: Free memory allocated to keep track of buffer ownership

Memory for free_output_indices and free_input_indices was never freed.
This commit kfrees the memory as part of venc_close().

Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: iommu: Set reserved bits for IOMMU hardware

There are several hardware private bits that are required for
proper operations of IOMMU hardware blocks. Set those bits
appropriately.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
ARM: msm: Clean up sensor ADSP driver; OCMEM is no longer used

OCMEM is no longer used, hence, removing OCMEM related code from the
ADSP driver.

Acked-by: Kevin Smith <smithk@qti.qualcomm.com>
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
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>

Dorimanx Note:
Adapt to 3.4.x branch.

This fix:
<4>------------[ cut here ]------------
<4>WARNING: at lib/vsprintf.c:1325 vsnprintf+0x43c/0x448()
<4>Please remove ignored %n in '%n'
<4>Modules linked in: exfat
<4>[<c010d1fc>] (unwind_backtrace) from [<c01959c8>] (warn_slowpath_common+0x60/0x80)
<4>[<c01959c8>] (warn_slowpath_common) from [<c0195a1c>] (warn_slowpath_fmt+0x34/0x4c)
<4>[<c0195a1c>] (warn_slowpath_fmt) from [<c03a555c>] (vsnprintf+0x43c/0x448)
<4>[<c03a555c>] (vsnprintf) from [<c0264090>] (seq_printf+0x44/0x84)
<4>[<c0264090>] (seq_printf) from [<c028fd8c>] (show_map_vma+0x104/0x29c)
<4>[<c028fd8c>] (show_map_vma) from [<c0290268>] (show_smap+0x9c/0x1ac)
<4>[<c0290268>] (show_smap) from [<c0263be8>] (seq_read+0x208/0x4c8)
<4>[<c0263be8>] (seq_read) from [<c0242968>] (vfs_read+0xa8/0x170)
<4>[<c0242968>] (vfs_read) from [<c0242da0>] (sys_read+0x44/0x8c)
<4>[<c0242da0>] (sys_read) from [<c0106900>] (ret_fast_syscall+0x0/0x30)
<4>---[ end trace 07fcae1a8b820aae ]---