Skip to contentSkip to conversation

coverity fix in alsa-libs

DISCUSSION Takashi Iwai 1 participant 1 message Sep 17, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

At Wed, 17 Sep 2014 03:17:08 +0000 (GMT),

Quoted 5 lines · Renu Tyagi

Hi Takashi,
File in which changes are being made : rawmidi.c
Bug type - Handle h to be closed in case of error before returning PFA patch.

By some reason, your post doesn't appear on alsa-devel ML. Did you subscribe the ML? If not, please subscribe and repost. Also, what about other patches you made?

Last but not least: please prepare a patch to be applicable via git-am, including subject and from tags and the changelog content, and don't forget your sign-off to the patch, just like a patch to Linux kernel.

thanks,

Takashi

Quoted 25 lines

Community Code:

	if (err >= 0)
		err = open_func(inputp, outputp, name, rawmidi_root, rawmidi_conf, mode);
	if (err < 0)
		return err;
	if (inputp) {
		(*inputp)->dl_handle = h; h = NULL;

Recommended Code :

	if (err >= 0)
		err = open_func(inputp, outputp, name, rawmidi_root, rawmidi_conf, mode);
	if (err < 0){
		if (h)
		snd_dlclose(h);
		return err;
	}
	if (inputp) {
		(*inputp)->dl_handle = h; h = NULL;

Thanks & Regards,
Renu Tyagi
[2 22578.patch <application/octet-stream (base64)>]