Re: [PATCH] fuse: avoid clobbering fc->release with fuse_conn_init(fc)

2015-06-01 Thread Jeremiah Mahler
Miklos, On Mon, Jun 01, 2015 at 02:03:02PM +0200, Miklos Szeredi wrote: > On Mon, Jun 1, 2015 at 3:31 AM, Jeremiah Mahler wrote: > > fuse_conn_init(fc) zeros the entire fc structure before it assigns > > specific values. Since fc->release is set before fuse_conn_init(fc) > > is called, the value

Re: [PATCH] fuse: avoid clobbering fc->release with fuse_conn_init(fc)

2015-06-01 Thread Miklos Szeredi
On Mon, Jun 1, 2015 at 3:31 AM, Jeremiah Mahler wrote: > fuse_conn_init(fc) zeros the entire fc structure before it assigns > specific values. Since fc->release is set before fuse_conn_init(fc) > is called, the value gets set to zero, which results in a NULL pointer > deference when fc->release()

[PATCH] fuse: avoid clobbering fc->release with fuse_conn_init(fc)

2015-05-31 Thread Jeremiah Mahler
fuse_conn_init(fc) zeros the entire fc structure before it assigns specific values. Since fc->release is set before fuse_conn_init(fc) is called, the value gets set to zero, which results in a NULL pointer deference when fc->release() is called. Fix the problem by assigning fc->release after call