Re: smatch stuff: potential NULL dereference in btrfs_rm_device()
On Tue, Nov 08, 2011 at 05:59:45PM +0300, Dan Carpenter wrote: > Hi Yan, > > Smatch complains about this code from 2008. > > fs/btrfs/volumes.c +1417 btrfs_rm_device(157) > error: we previously assumed 'fs_devices' could be null (see line 1412) > > 1412 while (fs_devices
smatch stuff: potential NULL dereference in btrfs_rm_device()
Hi Yan, Smatch complains about this code from 2008. fs/btrfs/volumes.c +1417 btrfs_rm_device(157) error: we previously assumed 'fs_devices' could be null (see line 1412) 1412 while (fs_devices) { ^^ checked here. 1413