usb: gadget: f_fs: do not set cancel function on synchronous {read,write}
authorRui Miguel Silva <rui.silva@linaro.org>
Mon, 18 May 2015 15:02:07 +0000 (16:02 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 31 Mar 2016 07:59:39 +0000 (16:59 +0900)
commit687fe647d9dfc62ca2599b93b414ac0cc214d332
tree729a098f6fce25630c06dc18a4fc5d932b9e393e
parent71ad053ff17ddbeb34c303aad63334bc387c25d1
usb: gadget: f_fs: do not set cancel function on synchronous {read,write}

do not try to set cancel function in synchronous operations in
ffs_epfile_{read,write}_iter.

Cc: <stable@vger.kernel.org> # v4.0+
Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
[Backported from mainline commit
4088acf1e845aba35f30fb91dee10649edbd0e84]
Change-Id: Icd247a1b83a6b905be4aa54343ce979165f7e17d
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
drivers/usb/gadget/function/f_fs.c