On Mon, Jun 13, 2016 at 9:53 AM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote: > If copy_to_user() fails then it returns the number of bytes not copied. > It would be between 1-4 here. Later the callers dereference it leading > to an Oops. > > It was sort of hard to fix this without making the code confusing so I > did a little cleanup. > > Fixes: 443c15d23220 ('IB/rxe: Shared Receive Queue (SRQ) manipulation functions') > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Thanks Dan I'll merge it to next series -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html