Re: [PATCH] proc: put check_mem_permission before __get_free_page in mem_read

From: KOSAKI Motohiro
Date: Sun Apr 24 2011 - 11:33:59 EST


2011/4/18 <bookjovi@xxxxxxxxx>:
> From: Jovi Zhang <bookjovi@xxxxxxxxx>
>
> It should be better if put check_mem_permission before __get_free_page
> in mem_read, to be same as function mem_write.
>
> Signed-off-by: Jovi Zhang <bookjovi@xxxxxxxxx>

Looks good to me.
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/