All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] Maybe a null point bug in __ocfs2_change_file_space.
@ 2012-04-13  3:32 Chang Limin
  0 siblings, 0 replies; 3+ messages in thread
From: Chang Limin @ 2012-04-13  3:32 UTC (permalink / raw)
  To: ocfs2-devel

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

-------------------------------------------------------------------------------------------------------------------------------------
????????????????????????????????????????
????????????????????????????????????????
????????????????????????????????????????
???
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20120413/8172e23a/attachment-0001.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Ocfs2-devel] Maybe a null point bug in __ocfs2_change_file_space.
  2012-04-13  7:58 Chang Limin
@ 2012-04-13  9:26 ` Tao Ma
  0 siblings, 0 replies; 3+ messages in thread
From: Tao Ma @ 2012-04-13  9:26 UTC (permalink / raw)
  To: ocfs2-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Ocfs2-devel] Maybe a null point bug in __ocfs2_change_file_space.
@ 2012-04-13  7:58 Chang Limin
  2012-04-13  9:26 ` Tao Ma
  0 siblings, 1 reply; 3+ messages in thread
From: Chang Limin @ 2012-04-13  7:58 UTC (permalink / raw)
  To: ocfs2-devel

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
-------------------------------------------------------------------------------------------------------------------------------------
????????????????????????????????????????
????????????????????????????????????????
????????????????????????????????????????
???
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20120413/bda432dc/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-13  9:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-13  3:32 [Ocfs2-devel] Maybe a null point bug in __ocfs2_change_file_space Chang Limin
2012-04-13  7:58 Chang Limin
2012-04-13  9:26 ` Tao Ma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.