]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: PCM: Fix possible memory leaks in the error path
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Aug 2012 10:48:32 +0000 (12:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Aug 2012 10:48:32 +0000 (12:48 +0200)
commit8a3d239a8de7b72f9e17a9ced7c10b1802a33c8b
tree9c60a5f46538233ab41f97cdf42fb9b33a4af7b1
parentf810f1d2ee8b0e381ea7dfddbc44b4e6b02a47c8
ALSA: PCM: Fix possible memory leaks in the error path

When the first page allocation failed for sgbuf, it leaks the records
that have been formerly allocated.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/sgbuf.c