sabermod gcc toolchain
vfs: fix data corruption when blocksize < pagesize for mmaped data
usb: dwc3: gadget: hold the lock through set_wedge()'s life

Instead of releasing the lock and calling locked
versions of our set_halt() methods, let's hold
the lock all the way through and call unlocked
versions of those functions.

Signed-off-by: Felipe Balbi <balbi@ti.com>
usb: dwc3: gadget: fix set_halt() bug with pending transfers
usb: dwc3: gadget: Properly initialize LINK TRB

On ISOC endpoints the last trb_pool entry used as a
LINK TRB is not getting zeroed out correctly due to
memset being called incorrectly and in the wrong place.
If pool allocated from DMA was not zero-initialized
to begin with this will result in the size and ctrl
values being random garbage. Call memset correctly after
assignment of the trb_link pointer.

Fixes: f6bafc6a1c ("usb: dwc3: convert TRBs into bitshifts")
Cc: <stable@vger.kernel.org> # v3.4+
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
usb: dwc3: ep0: hold our lock in dwc3_gadget_ep0_set_halt

dwc3_gadget_ep0_set_halt() will be called without
locks held in some cases, so we must hold the lock
on our own. While at that, also add a version without
locks to be called in certain conditions.

Signed-off-by: Felipe Balbi <balbi@ti.com>
usb: gadget: udc: core: fix kernel oops with soft-connect
Revert "mm: Increase number of GFP masks"

This reverts commit bc3a6450bd22fa411091c47edd776f18dcd49ab4.
Revert "lowmemorykiller: Account for highmem during kswapd reclaim"

This reverts commit 04529f5f1e045758d9e6608afee68b6a3e6b4543.
msm: camera: Fix improper ion free in error case

In case of ion import failure, error value is being passed as an
handle to ion_free which causes invalid address access. This patch
fixes improper api calls in error case.
Change-Id: Ibc85f12d92d876ffb18afe4d330a6c59f2b8bfcc
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
Priority of a merged request is computed by ioprio_best(). If one of the
requests has undefined priority (IOPRIO_CLASS_NONE) and another request
has priority from IOPRIO_CLASS_BE, the function will return the
undefined priority which is wrong. Fix the function to properly return
priority of a request with the defined priority.

Fixes: d58cdfb89ce0c6bd5f81ae931a984ef298dbda20
CC: stable@xxxxxxxxxxxxxxx
Signed-off-by: Jan Kara <jack@xxxxxxx>