[PATCH] serial: jsm: Free memory when jsm_tty_open() fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> When jsm_tty_open() fails it doesn't free allocated memory and we may
> have a memory leak. Fix this by freeing the allocated memory before
> the return.

NAK.  The channel is preserved among .open() calls, so I don't think we
have a leak.  A later attempt to open the port will simply reuse the
previously allocated rqueue.

--
Gabriel Krisman Bertazi
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux