drivers\char\pcmcia\synclink_cs.c
In file : \drivers\char\pcmcia\synclink_cs.c In function : line_info(char *buf, MGSLPC_INFO *info)
The buffer *stat_buf* could be defined smaller.
It is used to build a string that can not be longer than "|RTS|CTS|DTR|DSR|CD|RI", that is to say 21 + 1 chars so :
char stat_buf[22];
instead of
char stat_buf[30];would be enough and would save a few bytes on the stack.
CJ
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 5 lines · Christophe Jaillet
In file : \drivers\char\pcmcia\synclink_cs.c In function : line_info(char *buf, MGSLPC_INFO *info)The buffer *stat_buf* could be defined smaller.
Where's the patch?
Thanks,
Nish
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors