Patch "kernfs: fix regression in kernfs_fop_write caused by wrong type" has been added to the 3.18-stable tree