Jeff Layton
618763958b
cifs: make cifs_ioctl handle NULL filp->private_data correctly
...
Commit 13cfb7334e made cifs_ioctl use the tlink attached to the
cifsFileInfo for a filp. This ignores the case of an open directory
however, which in CIFS can have a NULL private_data until a readdir
is done on it.
This patch re-adds the NULL pointer checks that were removed in commit
50ae28f01 and moves the setting of tcon and "caps" variables lower.
Long term, a better fix would be to establish a f_op->open routine for
directories that populates that field at open time, but that requires
some other changes to how readdir calls are handled.
Reported-by: Kjell Rune Skaaraas <kjella79@yahoo.no >
Reviewed-and-Tested-by: Suresh Jayaraman <sjayaraman@suse.de >
Signed-off-by: Jeff Layton <jlayton@redhat.com >
Signed-off-by: Steve French <sfrench@us.ibm.com >
2010-11-08 18:56:36 +00:00
..
2010-10-29 04:16:38 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:17:13 -04:00
2010-10-29 04:16:31 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-10-30 09:05:48 -07:00
2010-10-15 15:53:27 +02:00
2010-10-29 04:17:18 -04:00
2010-11-08 18:56:36 +00:00
2010-10-29 04:16:31 -04:00
2010-10-29 04:16:28 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:28 -04:00
2010-10-29 04:16:28 -04:00
2010-10-22 17:33:16 -07:00
2010-10-29 14:15:12 -07:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:31 -04:00
2010-10-25 21:26:13 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-11-02 10:38:30 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-08-12 09:51:35 -07:00
2010-10-29 04:16:31 -04:00
2010-10-31 06:35:15 -07:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:31 -04:00
2010-10-31 20:40:24 -04:00
2010-10-29 04:16:31 -04:00
2010-10-29 04:16:31 -04:00
2010-10-29 04:16:13 -04:00
2010-10-27 20:13:18 -07:00
2010-10-30 12:12:50 +02:00
2010-10-30 08:31:35 -07:00
2010-10-29 04:16:13 -04:00
2010-10-27 21:39:50 +02:00
2010-11-01 16:34:56 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:31 -04:00
2010-10-31 06:35:15 -07:00
2010-03-30 22:02:32 +09:00
2010-10-31 06:35:15 -07:00
2010-10-29 04:16:53 -04:00
2010-10-30 14:07:35 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:31 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:28 -04:00
2010-10-25 07:45:10 -07:00
2010-10-29 04:17:01 -04:00
2010-10-29 04:16:13 -04:00
2010-10-28 01:30:06 +02:00
2010-10-29 04:16:31 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:26 -04:00
2010-10-29 08:48:58 -07:00
2010-10-29 04:17:08 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:36 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-10-25 21:26:11 -04:00
2010-10-29 04:16:33 -04:00
2010-08-09 16:47:39 -04:00
2010-08-14 00:24:24 +02:00
2010-10-14 10:57:40 -07:00
2010-06-01 08:11:06 -07:00
2010-10-08 10:02:53 +01:00
2010-03-30 22:02:32 +09:00
2010-06-29 15:29:31 -07:00
2010-10-29 04:16:28 -04:00
2010-08-17 18:07:43 -07:00
2010-08-23 13:36:59 +02:00
2010-08-07 18:20:39 +02:00
2010-10-29 04:16:33 -04:00
2010-10-26 17:58:44 -07:00
2010-10-22 10:52:56 -07:00
2010-03-06 11:26:45 -08:00
2010-10-28 09:44:56 -07:00
2010-10-30 08:19:35 -07:00
2010-10-25 21:26:13 -04:00
2010-10-26 16:52:13 -07:00
2010-08-09 16:47:44 -04:00
2010-10-15 15:53:27 +02:00
2010-10-27 18:03:18 -07:00
2010-10-27 18:03:13 -07:00
2010-10-27 18:17:02 -07:00
2010-10-15 15:53:27 +02:00
2010-10-26 16:52:15 -07:00
2010-08-11 08:59:02 -07:00
2010-03-30 22:02:32 +09:00
2010-08-18 08:35:46 -04:00
2010-10-30 09:05:48 -07:00
2010-08-18 01:04:22 -04:00
2010-10-26 17:58:44 -07:00
2010-10-29 05:49:13 -04:00
2010-10-27 21:30:11 -04:00
2010-03-30 22:02:32 +09:00
2010-10-28 09:44:56 -07:00
2010-10-27 18:03:12 -07:00
2010-10-29 04:16:33 -04:00
2010-10-31 06:35:15 -07:00
2010-10-28 09:44:56 -07:00
2010-08-18 06:24:41 -04:00
2010-03-30 22:02:32 +09:00
2010-10-29 04:14:56 -04:00
2010-10-25 21:24:16 -04:00
2010-10-15 15:53:27 +02:00
2010-10-29 04:14:56 -04:00
2010-10-29 04:16:33 -04:00
2010-08-18 08:35:48 -04:00
2010-10-29 10:36:49 -07:00
2010-08-09 20:45:05 -07:00
2010-10-27 18:03:18 -07:00
2010-10-25 21:26:12 -04:00
2010-10-26 10:13:10 -07:00
2010-08-07 18:52:56 +02:00
2010-08-13 16:53:13 -07:00
2010-08-09 16:48:44 -04:00
2010-10-29 04:17:03 -04:00
2010-08-09 16:47:43 -04:00
2010-10-15 15:53:27 +02:00
2010-08-13 16:53:13 -07:00
2010-03-30 22:02:32 +09:00
2010-05-21 18:31:18 -04:00