Files
twx-linux/drivers
Christophe JAILLET ef21f3a12b USB: gadgetfs: Fix a potential memory leak in 'dev_config()'
[ Upstream commit b6e7aeeaf2 ]

'kbuf' is allocated just a few lines above using 'memdup_user()'.
If the 'if (dev->buf)' test fails, this memory is never released.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-16 10:33:52 +01:00
..
…
…
…
2017-11-24 08:32:25 +01:00
…
…
2017-12-09 18:42:43 +01:00
…
…
…
2017-12-16 10:33:50 +01:00
…
2017-10-12 11:27:33 +02:00
2017-11-08 10:06:29 +01:00
…
…
2017-11-30 08:37:27 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…