Alexander Beregalov
12bb12fac0
staging: hv: fix memory leaks
...
Free resources before exit.
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com >
Cc: K. Y. Srinivasan <kys@microsoft.com >
Cc: Haiyang Zhang <haiyangz@microsoft.com >
Cc: Mike Sterling <mike.sterling@microsoft.com >
Cc: Abhishek Kane <v-abkane@microsoft.com >
Cc: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:38:15 -07:00
Ilia Mirkin
dd9b15dc03
staging: hv: Remove NULL check before kfree
...
This patch was generated by the following semantic patch:
// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;
// </smpl>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu >
Cc: K. Y. Srinivasan <kys@microsoft.com >
Cc: Haiyang Zhang <haiyangz@microsoft.com >
Cc: Mike Sterling <mike.sterling@microsoft.com >
Cc: Abhishek Kane <v-abkane@microsoft.com >
Cc: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:36:14 -07:00
K. Y. Srinivasan
e13a0b5a4b
Staging: hv: Get rid of vmbus_child_dev_add()
...
The function vmbus_child_dev_add() is a wrapper that can be
eliminated; get rid of it.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:29:59 -07:00
K. Y. Srinivasan
3ca07cb06d
Staging: hv: Change the signature for vmbus_child_device_register()
...
In preparation for getting rid of the vmbus_child_dev_add() function,
modify the signature of vmbus_child_device_register(). Note that
the root device is a global variable.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:29:59 -07:00
K. Y. Srinivasan
ece0e32fd2
Staging: hv: Get rid of vmbus_cleanup() function
...
Get rid of the vmbus_cleanup() function by inlining the
necessary code.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:29:58 -07:00
K. Y. Srinivasan
f51b3593bb
Staging: hv: Get rid of vmbus_dev_rm() function
...
Get rid of the vmbus_dev_rm() function by inlining
the necessary code.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:29:58 -07:00
K. Y. Srinivasan
480ae58db5
Staging: hv: Change the signature for vmbus_on_isr()
...
As part of getting getting rid of the hv_driver object from
vmbus_driver_context, change the signature for vmbus_on_isr.
Note that the argument to vmbus_on_isr() is not used.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:29:58 -07:00
K. Y. Srinivasan
6de3d6aa9a
Staging: hv: Eliminate vmbus_event_dpc()
...
vmbus_event_dpc() was a wrapper function not adding any value;
get rid of it.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:29:57 -07:00
K. Y. Srinivasan
62c1059d6e
Staging: hv: Get rid of the function vmbus_msg_dpc()
...
vmbus_msg_dpc() was a wrapper adding no additional value;
get rid of this function.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:29:57 -07:00
K. Y. Srinivasan
21ec2de26a
Staging: hv: Change the signature for vmbus_cleanup()
...
As part of geting rid of hv_driver object from
vmbus_driver_context, change the signature of
vmbus_cleanup() function. Note that while
vmbus_cleanup() was passed a pointer to hv_driver,
this argument was unused.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:29:57 -07:00
K. Y. Srinivasan
a6e4d8e3fe
Staging: hv: Simplify root device management
...
As part of simplifying root device management,
get rid of the hv_driver object from
vmbus_driver_context.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:29:56 -07:00
Mike McCormack
f0dee9f26c
staging: rtl8192e: Don't copy dev pointer to skb
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:48 -07:00
Mike McCormack
83970d9ba1
staging: rtl8192e: Pass priv to cmdpkt functions
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:48 -07:00
Mike McCormack
ef8efe5b2d
staging: rtl8192e: Pass priv to firmware download functions
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:47 -07:00
Mike McCormack
4368607df1
staging: rtl8192e: Pass priv to rtl8192_interrupt
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:47 -07:00
Mike McCormack
eea7205027
staging: rtl8192e: Pass rtl8192_priv to dm functions
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:47 -07:00
Mike McCormack
1e04ca7adf
staging: rtl8192e: Pass ieee80211_device to callbacks
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:46 -07:00
Mike McCormack
ad44d2a1c5
staging: rtl8192e: Pass ieee80211_device to callbacks
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:46 -07:00
Mike McCormack
7c186cff26
staging: rtl8192e: Pass ieee80211_device to callbacks
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:45 -07:00
Mike McCormack
d1c580aa70
staging: rtl8192e: Pass ieee80211_device to callbacks
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:45 -07:00
Mike McCormack
09145962d6
staging: rtl8192e: Pass ieee80211_device to callbacks
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:45 -07:00
Mike McCormack
45a43a84cd
staging: rtl8192e: Simplify rtl819x_ifcheck_resetornot
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:44 -07:00
Mike McCormack
8031aecb2d
staging: rtl8192e: Remove ifdefs and dead code
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:44 -07:00
Mike McCormack
de69ba3213
staging: rtl8192e: Pass priv pointer to proc
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:44 -07:00
Mike McCormack
699d015702
staging: rtl8192e: Delete dead code
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:43 -07:00
Mike McCormack
db38680061
staging: rtl8192e: Use better loop counter name
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:43 -07:00
Mike McCormack
a78275349c
staging: rtl8192e: Delete unused struct members
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:43 -07:00
Mike McCormack
9a77bd58f6
staging: rtl8192e: Store mem_start in priv struct
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:42 -07:00
Mike McCormack
f19dbc0ca8
staging: rtl8192e: Delete commented code
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:42 -07:00
Mike McCormack
28344f1a1b
staging: rtl8192e: Remove unused header
...
Signed-off-by: Mike McCormack <mikem@ring3k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:24:41 -07:00
Alexander Beregalov
b4c7784860
staging: crystalhd: fix memory leaks
...
Free resources before exit.
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:23:34 -07:00
Alexander Beregalov
819d4eb116
staging: ste_rmi4: fix memory leaks
...
Free resources before exit.
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:22:54 -07:00
Alexander Beregalov
570edd3b23
staging: brcm80211: fix memory leaks
...
Free resources before exit.
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:22:54 -07:00
Felipe Contreras
ab42abf33a
staging: tidspbridge: protect dmm_map properly
...
We need to protect not only the dmm_map list, but the individual
map_obj's, otherwise, we might be building the scatter-gather list with
garbage. So, use the existing proc_lock for that.
I observed race conditions which caused kernel panics while running
stress tests, also, Tuomas Kulve found it happening quite often in
Gumstix Over. This patch fixes those.
Cc: Tuomas Kulve <tuomas@kulve.fi >
Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com >
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com >
Cc: stable <stable@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:22:27 -07:00
Michael Hennerich
17e2a54203
Staging: IIO: DAC: AD5624R: Consistency cleanup - no functional changes
...
Consistently use indio_dev and access macro for devdata
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Acked-by: Jonathan Cameron <jic23@cam.ac.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 12:21:28 -07:00
Mitko Haralanov
36b87b419c
IB/qib: Fix M_Key field in SubnGet and SubnGetResp MADs
...
Set the M_Key field in SubnGet and SugnGetResp MADs based on correctly
interpreting the protection level specified in the M_KeyProtBits field.
Signed-off-by: Mitko Haralanov <mitko@qlogic.com >
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com >
Signed-off-by: Roland Dreier <roland@purestorage.com >
2011-03-14 12:11:51 -07:00
Mitko Haralanov
4634b7945c
IB/qib: Set default LE2 value for active cables to 0
...
For active and far-EQ cables use an LE2 value of 0 for improved SI.
Signed-off-by: Mitko Haralanov <mitko@qlogic.com >
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com >
Signed-off-by: Roland Dreier <roland@purestorage.com >
2011-03-14 12:10:34 -07:00
Steve Wise
db5d040d7b
RDMA/cxgb4: Debugfs dump_qp() updates
...
- Show whether the SQ is in onchip memory or not.
- Dump both SQ and RQ QIDs.
Signed-off-by: Steve Wise <swise@opengridcomputing.com >
Signed-off-by: Roland Dreier <roland@purestorage.com >
2011-03-14 12:09:14 -07:00
Steve Wise
767fbe8151
RDMA/cxgb4: Dispatch FATAL event on EEH errors
...
This at least kicks the user mode applications that are watching for
device events.
Signed-off-by: Steve Wise <swise@opengridcomputing.com >
Signed-off-by: Roland Dreier <roland@purestorage.com >
2011-03-14 12:09:13 -07:00
Steve Wise
b48f3b9c10
RDMA/cxgb4: Use ULP_MODE_TCPDDP
...
Set the ULP mode for initial RDMA connection setup to the proper DDP
mode. This avoids wasting some HW resources while in streaming mode.
Signed-off-by: Steve Wise <swise@opengridcomputing.com >
Signed-off-by: Roland Dreier <roland@purestorage.com >
2011-03-14 12:09:12 -07:00
Steve Wise
a9c7719800
RDMA/cxgb4: Enable on-chip SQ support by default
...
Signed-off-by: Steve Wise <swise@opengridcomputing.com >
Signed-off-by: Roland Dreier <roland@purestorage.com >
2011-03-14 12:09:12 -07:00
Steve Wise
ffc3f7487f
RDMA/cxgb4: Do CIDX_INC updates every 1/16 CQ depth CQE reaps
...
This avoids the CIDX_INC overflow issue with T4A2 when running
kernel RDMA applications.
Signed-off-by: Steve Wise <swise@opengridcomputing.com >
Signed-off-by: Roland Dreier <roland@purestorage.com >
2011-03-14 12:09:11 -07:00
Steve Wise
2942813739
RDMA/cxgb4: Remove db_drop_task
...
Unloading iw_cxgb4 can crash due to the unload code trying to use
db_drop_task, which is uninitialized. So remove this dead code.
Signed-off-by: Steve Wise <swise@opengridcomputing.com >
Signed-off-by: Roland Dreier <roland@purestorage.com >
2011-03-14 12:09:10 -07:00
Steve Wise
b52fe09e33
RDMA/cxgb4: Turn on delayed ACK
...
Set the default to on.
Signed-off-by: Steve Wise <swise@opengridcomputing.com >
Signed-off-by: Roland Dreier <roland@purestorage.com >
2011-03-14 12:09:09 -07:00
Luis R. Rodriguez
9dabb7224f
ath6kl: remove-typedef HIF_DEVICE
...
remove-typedef -s HIF_DEVICE \
"struct hif_device" drivers/staging/ath6kl/
Tested-by: Naveen Singh <nsingh@atheros.com >
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 11:58:57 -07:00
Luis R. Rodriguez
a71f0bf684
ath6kl: remove-typedef AR_SOFTC_T
...
remove-typedef -s AR_SOFTC_T \
"struct ar6_softc" drivers/staging/ath6kl/
Tested-by: Naveen Singh <nsingh@atheros.com >
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 11:58:57 -07:00
Luis R. Rodriguez
b2bad08740
ath6kl: remove-typedef WINDOW_SNAPSHOT
...
remove-typedef -s WINDOW_SNAPSHOT \
"struct window_snapshot" drivers/staging/ath6kl/
Tested-by: Naveen Singh <nsingh@atheros.com >
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 11:58:56 -07:00
Luis R. Rodriguez
1982f05de1
ath6kl: remove-typedef ST_READ_STATUS
...
remove-typedef -s ST_READ_STATUS \
"struct st_read_status" drivers/staging/ath6kl/
Tested-by: Naveen Singh <nsingh@atheros.com >
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 11:58:56 -07:00
Luis R. Rodriguez
5f801f7f44
ath6kl: remove-typedef ST_PS_DATA_FORMAT
...
remove-typedef -s ST_PS_DATA_FORMAT \
"struct st_ps_data_format" drivers/staging/ath6kl/
Tested-by: Naveen Singh <nsingh@atheros.com >
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 11:58:55 -07:00
Luis R. Rodriguez
9da9daf274
ath6kl: remove-typedef RXTID_STATS
...
remove-typedef -s RXTID_STATS \
"struct rxtid_stats" drivers/staging/ath6kl/
Tested-by: Naveen Singh <nsingh@atheros.com >
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-03-14 11:58:55 -07:00