Thanks, that's a cleaner approach. Apologies for delayed reply as I'm in middle of a house move. I'll send an updated patch soon.
Okash > On 2 Dec 2015, at 13:17, Dan Carpenter <[email protected]> wrote: > > Probably it's better to create a different struct: > > struct udata_s { > unsigned int size; > void __user *buf; > }; > > regards, > dan carpenter > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

