Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6

* 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
PM QoS: Fix inline documentation.
PM QoS: Fix kzalloc() parameters swapped in pm_qos_power_open()

+7 -5
+7 -5
kernel/pm_qos_params.c
··· 212 212 213 213 /** 214 214 * pm_qos_add_request - inserts new qos request into the list 215 - * @pm_qos_class: identifies which list of qos request to us 215 + * @dep: pointer to a preallocated handle 216 + * @pm_qos_class: identifies which list of qos request to use 216 217 * @value: defines the qos request 217 218 * 218 219 * This function inserts a new entry in the pm_qos_class list of requested qos 219 220 * performance characteristics. It recomputes the aggregate QoS expectations 220 - * for the pm_qos_class of parameters, and returns the pm_qos_request list 221 - * element as a handle for use in updating and removal. Call needs to save 222 - * this handle for later use. 221 + * for the pm_qos_class of parameters and initializes the pm_qos_request_list 222 + * handle. Caller needs to save this handle for later use in updates and 223 + * removal. 223 224 */ 225 + 224 226 void pm_qos_add_request(struct pm_qos_request_list *dep, 225 227 int pm_qos_class, s32 value) 226 228 { ··· 350 348 351 349 pm_qos_class = find_pm_qos_object_by_minor(iminor(inode)); 352 350 if (pm_qos_class >= 0) { 353 - struct pm_qos_request_list *req = kzalloc(GFP_KERNEL, sizeof(*req)); 351 + struct pm_qos_request_list *req = kzalloc(sizeof(*req), GFP_KERNEL); 354 352 if (!req) 355 353 return -ENOMEM; 356 354