Re: [PATCH] synclink fix ldisc buffer argument

From: Chen Gang
Date: Tue Dec 04 2012 - 20:34:12 EST


ä 2012å12æ04æ 01:13, Paul Fulghum åé:
> Fix call to line discipline receive_buf by synclink drivers.
> Dummy flag buffer argument is ignored by N_HDLC line discipline but might
> be of insufficient size if accessed by a different line discipline
> selected by mistake. flag buffer allocation now matches max size of data
> buffer. Unused char_buf buffers are removed.
>
> Signed-off-by: Paul Fulghum <paulkf@xxxxxxxxxxxxx>
>

thank you very much.


might we use macro instead of hard code number ? (such as 4096,
65535). it is only an idea, not means need regression.

thanks.

--
Chen Gang

Asianux Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/