From: Andrzej Pietrasiewicz Date: Mon, 11 Mar 2013 15:32:14 +0000 (+0100) Subject: usb: gadget: ffs: fix enable multiple instances X-Git-Tag: v3.9-rc4~11^2~22^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3416905ba058e43112ad7b1b4859797f027f5a07;p=pandora-kernel.git usb: gadget: ffs: fix enable multiple instances This patch fixes an "off-by-one" bug found in 581791f (FunctionFS: enable multiple functions). During gfs_bind/gfs_unbind the functionfs_bind/functionfs_unbind should be called for every functionfs instance. With the "i" pre-decremented they were not called for the zeroth instance. Acked-by: Michal Nazarewicz Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park Cc: [ balbi@ti.com : added offending commit's subject ] Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed