]> git.baikalelectronics.ru Git - kernel.git/commit
fix setattr error handling in sysfs, configfs
authorNick Piggin <npiggin@suse.de>
Mon, 31 May 2010 07:58:02 +0000 (17:58 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:27:53 +0000 (13:27 -0700)
commitf22f4938ffb94ad2ba62d290c7ebcd3d64e42f26
tree8c4cf43eb8f840e84a48d387928673bcccd03d66
parentb5fe299b3ad05650bea554dcffe58783a5d35248
fix setattr error handling in sysfs, configfs

sysfs and configfs setattr functions have error cases after the generic inode's
attributes have been changed. Fix consistency by changing the generic inode
attributes only when it is guaranteed to succeed.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/configfs/inode.c
fs/sysfs/inode.c