diff --git a/20160425/chardev-1write.c b/20160425/chardev-1write.c index bb6c15e2d5043c0f6109983804f33771be97f324..bd24f069f151a5885f7c94e8ed37ed9c548136c4 100644 --- a/20160425/chardev-1write.c +++ b/20160425/chardev-1write.c @@ -183,7 +183,7 @@ device_write(struct file *filp, const char *buff, size_t len, loff_t * off) /* Since nobody wants to read I have to correct the already told you counter! */ told_you_counter--; - if(len > USERBUF_LEN) { + if(len >= USERBUF_LEN) { printk( KERN_WARNING "%s: Sorry, your input is too long. Max %d allowed!\n", DEVICE_NAME,