Re: [PATCH] cifs: fix memory leak of pneg_inbuf on -EOPNOTSUPP ioctl case

2019-05-19 Thread Steve French
merged into cifs-2.6.git for-next (and added cc:stable #v5.1) On Fri, May 17, 2019 at 3:42 AM Colin King wrote: > > From: Colin Ian King > > Currently in the case where SMB2_ioctl returns the -EOPNOTSUPP error > there is a memory leak of pneg_inbuf. Fix this by returning via > the

[PATCH] cifs: fix memory leak of pneg_inbuf on -EOPNOTSUPP ioctl case

2019-05-17 Thread Colin King
From: Colin Ian King Currently in the case where SMB2_ioctl returns the -EOPNOTSUPP error there is a memory leak of pneg_inbuf. Fix this by returning via the out_free_inbuf exit path that will perform the relevant kfree. Addresses-Coverity: ("Resource leak") Fixes: 969ae8e8d4ee ("cifs: Accept