Please correct me if I'm wrong, what memcpy_fromfs does is copy some chunk
of memory from user space into memory in kernel space. So, I should have
no problem if I memset() the kernel space memory?
----------------------------------------------------------------------------
char ifacename[IFNAMSIZ];
int ifacelen;
memcpy_fromfs((void *)&ifacelen, (void *)&dfp->cbq_iface.cbq_ifacelen,
sizeof(int));
memcpy_fromfs((void *)ifacename, (void *)dfp->cbq_iface.cbq_ifacename,
ifacelen);
memset((void *)((char *)ifacename + ifacelen), '\0', sizeof(char));
----------------------------------------------------------------------------
Many thanks for your help,
CCFoo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu