staging: gasket: print mmap starting address as unsigned long
Page alignment error log should print the offending value as an unsigned long, not as a kernel pointer. Reported-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5c4a5d3ddd
commit
a1978fa2d6
|
@ -1596,8 +1596,8 @@ static int gasket_mmap(struct file *filp, struct vm_area_struct *vma)
|
|||
|
||||
if (vma->vm_start & ~PAGE_MASK) {
|
||||
gasket_log_error(
|
||||
gasket_dev, "Base address not page-aligned: 0x%p\n",
|
||||
(void *)vma->vm_start);
|
||||
gasket_dev, "Base address not page-aligned: 0x%lx\n",
|
||||
vma->vm_start);
|
||||
trace_gasket_mmap_exit(-EINVAL);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue