On Tue, Jul 28, 2015 at 05:16:09PM +0200, Christian Gromm wrote: > This patch prevents snprintf from exceeding a given buffer size. > > Reported-by: Dan Carpenter <[email protected]> > Signed-off-by: Christian Gromm <[email protected]> > --- <snip> > - snprintf(devnod_buf, PAGE_SIZE, "%s-%s", mdev, mdev_ch); > + snprintf(devnod_buf, sizeof(devnod_buf), "%s-%s", mdev, > mdev_ch); And this gives checkpatch warning for more than 80 char.
regards sudip _______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
