projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a crash when block device is read and block size is changed at the same time
[cascardo/linux.git]
/
drivers
/
char
/
raw.c
diff --git
a/drivers/char/raw.c
b/drivers/char/raw.c
index
54a3a6d
..
0bb207e
100644
(file)
--- a/
drivers/char/raw.c
+++ b/
drivers/char/raw.c
@@
-285,7
+285,7
@@
static long raw_ctl_compat_ioctl(struct file *file, unsigned int cmd,
static const struct file_operations raw_fops = {
.read = do_sync_read,
- .aio_read =
generic_file
_aio_read,
+ .aio_read =
blkdev
_aio_read,
.write = do_sync_write,
.aio_write = blkdev_aio_write,
.fsync = blkdev_fsync,