[Ocfs2-devel] Maybe a null point bug in __ocfs2_change_file_space.
Tao Ma
tm at tao.ma
Fri Apr 13 02:26:52 PDT 2012
Hi Limin,
Thanks for the report and the patch is already there. Please search the
archive with the subject "ocfs2: Fix oops in fallocate()".
Thanks
Tao
On 04/13/2012 03:58 PM, Chang Limin wrote:
> Hi,
>
> Version linux-3.3
>
> In function
>
> static long ocfs2_fallocate(struct file *file, int mode, loff_t offset,
>
> loff_t len)
>
> {
>
> …
>
> return __ocfs2_change_file_space(NULL, inode, offset, cmd,
> &sr, // file is NULL
>
> change_size);
>
> }
>
>
>
> In function
>
> static int __ocfs2_change_file_space(struct file *file, struct inode *inode,
>
> loff_t f_pos, unsigned int cmd,
>
> struct ocfs2_space_resv *sr,
>
> int change_size)
>
> {
>
> if (file->f_flags &
> O_SYNC)
> // access file->f_flags result null pointer
>
> handle->h_sync = 1;
>
> }
>
>
>
> Changlimin
More information about the Ocfs2-devel
mailing list