From: H Hartley Sweeten Date: Fri, 17 Aug 2012 02:53:45 +0000 (-0700) Subject: staging: comedi: cb_pcimdda: fix bug in call to subdev_8255_cleanup X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~870 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7ac601e1d744da6b213531eac140982c6821b6f;p=pandora-kernel.git staging: comedi: cb_pcimdda: fix bug in call to subdev_8255_cleanup The attach function only allocated 2 subdevices, an analog output sundevice (index 0) and the 8255 dio subdevice (index 1). The detach function is passing the wrong subdevice (index 2) to the subdev_8255_cleanup function which will result in a bug when it tries to do the kfree(s->private). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed